Fix: doom-modeline-set.

This commit is contained in:
Vincent Zhang 2018-06-19 18:36:43 +08:00
parent 64404ed72e
commit 57fa2b22bb

View file

@ -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)))