mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-24 03:00:09 +00:00
Fix: doom-modeline-set
.
This commit is contained in:
parent
64404ed72e
commit
57fa2b22bb
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ Throws an error if it doesn't exist."
|
|||
(defun doom-modeline-set (key &optional default)
|
||||
"Set the modeline format. Does nothing if the modeline KEY doesn't exist.
|
||||
If DEFAULT is non-nil, set the default mode-line for all buffers."
|
||||
(when-let (m (doom-modeline key))
|
||||
(when-let ((modeline (doom-modeline key)))
|
||||
(setf (if default
|
||||
(default-value 'mode-line-format)
|
||||
(buffer-local-value 'mode-line-format (current-buffer)))
|
||||
|
|
Loading…
Reference in a new issue