fix spacebind prefixing bug

This commit is contained in:
JAremko 2020-10-08 09:23:00 +03:00 committed by Eugene Yaremenko
parent bf78bd4ec5
commit 72932b804b
2 changed files with 21 additions and 21 deletions

View File

@ -73,7 +73,7 @@ Otherwise binding happens at the next event loop.")
(let ((mode (car args)) (let ((mode (car args))
(prefix (string-join (cadr args) " ")) (prefix (string-join (cadr args) " "))
(label (caddr args))) (label (caddr args)))
(spacemacs/declare-prefix prefix label))) (spacemacs/declare-prefix-for-mode mode prefix label)))
;; `spacemacs/set-leader-keys' ;; `spacemacs/set-leader-keys'
(dolist (args spacebind--bs-set-leader-keys) (dolist (args spacebind--bs-set-leader-keys)

View File

@ -615,26 +615,26 @@ NOTE: `spacebind--eager-bind' set to true. "
py-mode "s R" python-shell-send-region nil) py-mode "s R" python-shell-send-region nil)
(spacemacs/set-leader-keys (spacemacs/set-leader-keys
"C-v b" bar-fn nil) "C-v b" bar-fn nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"C-p" "compile/execute" nil) py-mode "C-p" "compile/execute" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"d" "debug" nil) py-mode "d" "debug" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"r" "refactor" nil) py-mode "r" "refactor" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"s" "REPL" nil) py-mode "s" "REPL" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"a" "section under a key" nil) some-minor-mode "a" "section under a key" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"a c" "sub section under c key" nil) some-minor-mode "a c" "sub section under c key" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"a c d" "sub sub section under d key" nil) some-minor-mode "a c d" "sub sub section under d key" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"a" "section under a key" nil) some-another-minor-mode "a" "section under a key" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"a b" "sub section under b key" nil) some-another-minor-mode "a b" "sub section under b key" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix-for-mode
"a b c" "sub sub section under c key" nil) some-another-minor-mode "a b c" "sub sub section under c key" nil)
(spacemacs/declare-prefix (spacemacs/declare-prefix
"C-v" "section under a key" nil) "C-v" "section under a key" nil)
(which-key-add-major-mode-key-based-replacements (which-key-add-major-mode-key-based-replacements