Use symbols instead of strings

This commit is contained in:
Eivind Fonn 2017-05-23 16:04:40 +02:00
parent 5eeaed75d9
commit 909d23f412
3 changed files with 5 additions and 5 deletions

View file

@ -47,7 +47,7 @@
(setq spacemacs--symbol-highlight-transient-state-doc (setq spacemacs--symbol-highlight-transient-state-doc
(concat spacemacs--symbol-highlight-transient-state-doc (concat spacemacs--symbol-highlight-transient-state-doc
" [_b_] search buffers [_/_] search proj [_f_] search files [_s_] swoop")) " [_b_] search buffers [_/_] search proj [_f_] search files [_s_] swoop"))
(spacemacs/transient-state-register-add-bindings "symbol-highlight" (spacemacs/transient-state-register-add-bindings 'symbol-highlight
'(("/" spacemacs/helm-project-smart-do-search-region-or-symbol :exit t) '(("/" spacemacs/helm-project-smart-do-search-region-or-symbol :exit t)
("b" spacemacs/helm-buffers-smart-do-search-region-or-symbol :exit t) ("b" spacemacs/helm-buffers-smart-do-search-region-or-symbol :exit t)
("f" spacemacs/helm-files-smart-do-search-region-or-symbol :exit t) ("f" spacemacs/helm-files-smart-do-search-region-or-symbol :exit t)
@ -643,6 +643,6 @@ Search for a search tool in the order provided by `dotspacemacs-search-tools'."
(setq projectile-completion-system 'helm)) (setq projectile-completion-system 'helm))
(defun helm/post-init-persp-mode () (defun helm/post-init-persp-mode ()
(spacemacs/transient-state-register-add-bindings "layouts" (spacemacs/transient-state-register-add-bindings 'layouts
'(("b" spacemacs/persp-helm-mini :exit t) '(("b" spacemacs/persp-helm-mini :exit t)
("l" spacemacs/helm-perspectives :exit t)))) ("l" spacemacs/helm-perspectives :exit t))))

View file

@ -214,9 +214,9 @@
'spacemacs/ivy-spacemacs-layouts 'spacemacs/ivy-spacemacs-layouts
'(("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)")))
(spacemacs/transient-state-register-remove-bindings "layouts" (spacemacs/transient-state-register-remove-bindings 'layouts
'("C" "X")) '("C" "X"))
(spacemacs/transient-state-register-add-bindings "layouts" (spacemacs/transient-state-register-add-bindings 'layouts
'(("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)
("C" spacemacs/ivy-spacemacs-layout-close-other :exit t) ("C" spacemacs/ivy-spacemacs-layout-close-other :exit t)

View file

@ -229,7 +229,7 @@
:defer t :defer t
:init :init
(progn (progn
(spacemacs/transient-state-register-add-bindings "window-manipulation" (spacemacs/transient-state-register-add-bindings 'window-manipulation
'(("g" spacemacs/toggle-golden-ratio))) '(("g" spacemacs/toggle-golden-ratio)))
(spacemacs|add-toggle golden-ratio (spacemacs|add-toggle golden-ratio
:status golden-ratio-mode :status golden-ratio-mode