move helm specific layout transient state keybindings to helm layer
This commit is contained in:
parent
389d722996
commit
b515253026
|
@ -25,6 +25,7 @@
|
||||||
helm-themes
|
helm-themes
|
||||||
(helm-spacemacs-help :location local)
|
(helm-spacemacs-help :location local)
|
||||||
imenu
|
imenu
|
||||||
|
persp-mode
|
||||||
popwin
|
popwin
|
||||||
projectile
|
projectile
|
||||||
))
|
))
|
||||||
|
@ -593,3 +594,8 @@ Search for a search tool in the order provided by `dotspacemacs-search-tools'."
|
||||||
|
|
||||||
(defun helm/post-init-projectile ()
|
(defun helm/post-init-projectile ()
|
||||||
(setq projectile-completion-system 'helm))
|
(setq projectile-completion-system 'helm))
|
||||||
|
|
||||||
|
(defun helm/post-init-persp-mode ()
|
||||||
|
(setq spacemacs-layouts-transient-state-add-bindings
|
||||||
|
'(("b" spacemacs/persp-helm-mini :exit t)
|
||||||
|
("l" spacemacs/helm-perspectives :exit t))))
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
'(("c" persp-kill-without-buffers "Close layout(s)")
|
'(("c" persp-kill-without-buffers "Close layout(s)")
|
||||||
("k" persp-kill "Kill layout(s)")))
|
("k" persp-kill "Kill layout(s)")))
|
||||||
(setq spacemacs-layouts-transient-state-remove-bindings
|
(setq spacemacs-layouts-transient-state-remove-bindings
|
||||||
'("b" "l" "C" "X"))
|
'("C" "X"))
|
||||||
(setq spacemacs-layouts-transient-state-add-bindings
|
(setq spacemacs-layouts-transient-state-add-bindings
|
||||||
'(("b" spacemacs/ivy-spacemacs-layout-buffer :exit t)
|
'(("b" spacemacs/ivy-spacemacs-layout-buffer :exit t)
|
||||||
("l" spacemacs/ivy-spacemacs-layouts :exit t)
|
("l" spacemacs/ivy-spacemacs-layouts :exit t)
|
||||||
|
|
|
@ -129,8 +129,6 @@
|
||||||
(spacemacs/defer-until-after-user-config #'spacemacs//activate-persp-mode)
|
(spacemacs/defer-until-after-user-config #'spacemacs//activate-persp-mode)
|
||||||
|
|
||||||
;; layouts transient state
|
;; layouts transient state
|
||||||
;; TODO move helm specific key bindings to helm layer
|
|
||||||
;; (see ivy for how to do it)
|
|
||||||
(spacemacs|transient-state-format-hint layouts
|
(spacemacs|transient-state-format-hint layouts
|
||||||
spacemacs--layouts-ts-full-hint
|
spacemacs--layouts-ts-full-hint
|
||||||
"\n\n
|
"\n\n
|
||||||
|
@ -181,11 +179,9 @@
|
||||||
("C-l" persp-next)
|
("C-l" persp-next)
|
||||||
("a" persp-add-buffer :exit t)
|
("a" persp-add-buffer :exit t)
|
||||||
("A" persp-import-buffers :exit t)
|
("A" persp-import-buffers :exit t)
|
||||||
("b" spacemacs/persp-helm-mini :exit t)
|
|
||||||
("d" spacemacs/layouts-ts-close)
|
("d" spacemacs/layouts-ts-close)
|
||||||
("D" spacemacs/layouts-ts-close-other :exit t)
|
("D" spacemacs/layouts-ts-close-other :exit t)
|
||||||
("h" spacemacs/layout-goto-default :exit t)
|
("h" spacemacs/layout-goto-default :exit t)
|
||||||
("l" spacemacs/helm-perspectives :exit t)
|
|
||||||
("L" persp-load-state-from-file :exit t)
|
("L" persp-load-state-from-file :exit t)
|
||||||
("n" persp-next)
|
("n" persp-next)
|
||||||
("N" persp-prev)
|
("N" persp-prev)
|
||||||
|
|
Loading…
Reference in a new issue