From 65bbf5023e80ef3c094a204a51b0b684775eed05 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 12 Jan 2019 01:51:15 +0800 Subject: [PATCH] Add doom-modeline-set-main-modeline function. --- doom-modeline.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 13466a0..1eefca5 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -2047,11 +2047,16 @@ mouse-1: Toggle Debug on Quit" ;; of Emacs, someone give the man a modeline! (dolist (bname '("*scratch*" "*Messages*")) (with-current-buffer bname - (doom-modeline-set-modeline 'main))))) + (doom-modeline-set-main-modeline))))) + +;;;###autoload +(defun doom-modeline-set-main-modeline () + "Set main mode-line." + (doom-modeline-set-modeline 'main)) ;;;###autoload (defun doom-modeline-set-minimal-modeline () - "Set sepcial mode-line." + "Set minimal mode-line." (doom-modeline-set-modeline 'minimal)) ;;;###autoload