From 6975849702b9c3d469fedb748aaadb2b7c7d0390 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 29 Nov 2018 23:23:39 +0800 Subject: [PATCH] Add function for minimal modeline. --- doom-modeline.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index 7c2839c..89e8e07 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -1398,6 +1398,11 @@ See `mode-line-percent-position'.") (with-current-buffer bname (doom-modeline-set-modeline 'main))))) +;;;###autoload +(defun doom-modeline-set-minimal-modeline () + "Set sepcial mode-line." + (doom-modeline-set-modeline 'minimal)) + ;;;###autoload (defun doom-modeline-set-special-modeline () "Set sepcial mode-line." @@ -1422,6 +1427,7 @@ See `mode-line-percent-position'.") (add-hook 'image-mode-hook #'doom-modeline-set-media-modeline) (add-hook 'org-src-mode-hook #'doom-modeline-set-special-modeline) (add-hook 'circe-mode-hook #'doom-modeline-set-special-modeline) +(add-hook 'dashboard-mode-hook #'doom-modeline-set-minimal-modeline) ;; Versions, support Python, Ruby, Perl and Golang, etc. (add-hook 'python-mode-hook