transient-state: new dotspacemacs variable to hide titles

dotspacemacs-show-transient-state-title
This commit is contained in:
justbur 2016-01-28 16:38:14 -05:00 committed by syl20bnr
parent c40e49f1a1
commit b149f4e13a
4 changed files with 16 additions and 5 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-title t
"If non nil show the titles of transient states.")
(defvar dotspacemacs-show-transient-state-color-guide t
"If non nil show the color guide hint for transient state keys.")

View File

@ -141,9 +141,12 @@ used."
(add-face-text-property 0 (length guide) 'italic t guide)
(setq ,hint-var
(list 'concat
(propertize ,title
'face 'spacemacs-transient-state-title-face)
"\n" ,hint-var
(when dotspacemacs-show-transient-state-title
(concat
(propertize
,title
'face 'spacemacs-transient-state-title-face)
"\n")) ,hint-var
(when dotspacemacs-show-transient-state-color-guide
(concat "\n" guide))))))
(dolist (add-doc ',additional-docs)

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 titles of transient states.
dotspacemacs-show-transient-state-title t
;; 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)

View File

@ -161,8 +161,11 @@
(lambda ()
(setq spacemacs/layouts-transient-state/hint
`(concat
,(propertize "Layouts Transient State\n"
'face 'spacemacs-transient-state-title-face)
,(when dotspacemacs-show-transient-state-title
(concat
(propertize "Layouts Transient State"
'face 'spacemacs-transient-state-title-face)
"\n"))
(spacemacs//layouts-ms-doc))))
t)