transient-state: new dotspacemacs variable to hide titles
dotspacemacs-show-transient-state-title
This commit is contained in:
parent
c40e49f1a1
commit
b149f4e13a
|
@ -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.")
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue