Create prefixes before actually loading the layers

This commit is contained in:
sbenner 2014-12-11 11:22:55 -05:00
parent 9e9ce528be
commit 732cc1d4de
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
;; ---------------------------------------------------------------------------
;; Prefixes
;; ---------------------------------------------------------------------------
(setq spacemacs/key-binding-prefixes '(("a" . "applications")
("as" . "applications-shells")
("b" . "buffers")
@ -31,6 +35,9 @@
("xt" . "text-transpose")
("xw" . "text-words")
("z" . "z")))
(mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
spacemacs/key-binding-prefixes)
;; ---------------------------------------------------------------------------
;; Navigation
;; ---------------------------------------------------------------------------

View file

@ -675,9 +675,6 @@ determine the state to enable when escaping from the insert state.")
(setq evil-leader/in-all-states t
evil-leader/leader dotspacemacs-leader-key
evil-leader/non-normal-prefix "s-")
;; give name to spacemacs prefixes
(mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
spacemacs/key-binding-prefixes)
(global-evil-leader-mode))
:config
(progn