mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +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)
|
(defun doom-modeline-set (key &optional default)
|
||||||
"Set the modeline format. Does nothing if the modeline KEY doesn't exist.
|
"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."
|
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
|
(setf (if default
|
||||||
(default-value 'mode-line-format)
|
(default-value 'mode-line-format)
|
||||||
(buffer-local-value 'mode-line-format (current-buffer)))
|
(buffer-local-value 'mode-line-format (current-buffer)))
|
||||||
|
|
Loading…
Reference in a new issue