Rename layer-declaredp to package-declaredp in configuration-layer
This commit is contained in:
parent
c557111fd8
commit
c845002d0e
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue