Rename layer-declaredp to package-declaredp in configuration-layer

This commit is contained in:
syl20bnr 2015-01-10 00:57:08 -05:00
parent c557111fd8
commit c845002d0e
3 changed files with 5 additions and 5 deletions

View file

@ -165,9 +165,9 @@ the following keys:
(when (and base-dir (file-exists-p dir))
(cons name (list :dir dir :ext-dir ext-dir)))))
(defun configuration-layer/layer-declaredp (layer)
"Return non-nil if LAYER symbol corresponds to a declared layer."
(ht-contains? configuration-layer-all-packages layer))
(defun configuration-layer/package-declaredp (pkg)
"Return non-nil if PKG symbol corresponds to a used package."
(ht-contains? configuration-layer-all-packages pkg))
(defun configuration-layer/get-layers-list ()
"Return a list of all discovered layer symbols."

View file

@ -103,7 +103,7 @@
(evil-leader/set-key "cC" 'compile)
(evil-leader/set-key "cr" 'recompile)
;; narrow & widen -------------------------------------------------------------
(unless (configuration-layer/layer-declaredp 'fancy-narrow)
(unless (configuration-layer/package-declaredp 'fancy-narrow)
(evil-leader/set-key
"nr" 'narrow-to-region
"np" 'narrow-to-page

View file

@ -2110,7 +2110,7 @@ determine the state to enable when escaping from the insert state.")
;; not deferred on puprose
:init
(progn
(when (configuration-layer/layer-declaredp 'powerline)
(when (configuration-layer/package-declaredp 'powerline)
(defun window-numbering-install-mode-line (&optional position)
"Do nothing, the display is handled by the powerline."))
(evil-leader/set-key