Add function for minimal modeline.

This commit is contained in:
Vincent Zhang 2018-11-29 23:23:39 +08:00
parent 5b507e4b98
commit 6975849702

View file

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