transient-state: Add .spacemacs var to hide color guide

This commit is contained in:
justbur 2016-01-28 08:27:41 -05:00 committed by syl20bnr
parent 3bab577b86
commit c12f6b85c8
3 changed files with 8 additions and 1 deletions

View File

@ -221,6 +221,9 @@ can be toggled through `toggle-transparency'.")
transparency level of a frame when it's inactive or deselected. Transparency
can be toggled through `toggle-transparency'.")
(defvar dotspacemacs-show-transient-state-color-guide t
"If non nil show the color guide hint for transient state keys.")
(defvar dotspacemacs-mode-line-unicode-symbols t
"If non nil unicode symbols are displayed in the mode-line (eg. for lighters)")

View File

@ -116,7 +116,9 @@ used."
(list 'concat
(propertize ,(concat title "\n")
'face 'spacemacs-transient-state-title-face)
,hint-var "\n\n" guide))))
"\n" ,hint-var
(when dotspacemacs-show-transient-state-color-guide
(concat "\n" guide))))))
,@bindkeys)))))
(provide 'core-transient-state)

View File

@ -201,6 +201,8 @@ values."
;; the transparency level of a frame when it's inactive or deselected.
;; Transparency can be toggled through `toggle-transparency'. (default 90)
dotspacemacs-inactive-transparency 90
;; If non nil show the color guide hint for transient state keys
dotspacemacs-show-transient-state-color-guide t
;; If non nil unicode symbols are displayed in the mode line. (default t)
dotspacemacs-mode-line-unicode-symbols t
;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth