mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Merge pull request #333 from jmromer/make-layout-icon-toggleable
Make persp mode indicator icon toggleable
This commit is contained in:
commit
96350f6f81
3 changed files with 10 additions and 2 deletions
|
@ -257,6 +257,9 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables.
|
|||
;; If non nil the default perspective name is displayed in the mode-line.
|
||||
(setq doom-modeline-display-default-persp-name nil)
|
||||
|
||||
;; If non nil the perspective name is displayed alongside a folder icon.
|
||||
(setq doom-modeline-persp-icon t)
|
||||
|
||||
;; Whether display the `lsp' state. Non-nil to display in the mode-line.
|
||||
(setq doom-modeline-lsp t)
|
||||
|
||||
|
|
|
@ -303,6 +303,11 @@ Non-nil to display in the mode-line."
|
|||
:type 'boolean
|
||||
:group 'doom-modeline)
|
||||
|
||||
(defcustom doom-modeline-persp-icon t
|
||||
"If non nil the perspective name is displayed alongside a folder icon."
|
||||
:type 'boolean
|
||||
:group 'doom-modeline)
|
||||
|
||||
(defcustom doom-modeline-lsp t
|
||||
"Whether display the `lsp' state.
|
||||
|
||||
|
|
|
@ -1433,8 +1433,8 @@ Requires `eyebrowse-mode' or `tab-bar-mode' to be enabled."
|
|||
(when (or doom-modeline-display-default-persp-name
|
||||
(not (string-equal persp-nil-name name)))
|
||||
(concat (doom-modeline-spc)
|
||||
(propertize (concat icon
|
||||
(doom-modeline-vspc)
|
||||
(propertize (concat (when doom-modeline-persp-icon
|
||||
(concat icon (doom-modeline-vspc)))
|
||||
(propertize name 'face face))
|
||||
'help-echo "mouse-1: Switch perspective
|
||||
mouse-2: Show help for minor mode"
|
||||
|
|
Loading…
Add table
Reference in a new issue