diff --git a/doom-modeline.el b/doom-modeline.el index 4b55f93..eb4ab51 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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)))