From 57fa2b22bb42316067ac0576f19938c83a904124 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 19 Jun 2018 18:36:43 +0800 Subject: [PATCH] Fix: `doom-modeline-set`. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))