mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Add function for minimal modeline.
This commit is contained in:
parent
5b507e4b98
commit
6975849702
1 changed files with 6 additions and 0 deletions
|
@ -1398,6 +1398,11 @@ See `mode-line-percent-position'.")
|
||||||
(with-current-buffer bname
|
(with-current-buffer bname
|
||||||
(doom-modeline-set-modeline 'main)))))
|
(doom-modeline-set-modeline 'main)))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-minimal-modeline ()
|
||||||
|
"Set sepcial mode-line."
|
||||||
|
(doom-modeline-set-modeline 'minimal))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-modeline-set-special-modeline ()
|
(defun doom-modeline-set-special-modeline ()
|
||||||
"Set sepcial mode-line."
|
"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 'image-mode-hook #'doom-modeline-set-media-modeline)
|
||||||
(add-hook 'org-src-mode-hook #'doom-modeline-set-special-modeline)
|
(add-hook 'org-src-mode-hook #'doom-modeline-set-special-modeline)
|
||||||
(add-hook 'circe-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.
|
;; Versions, support Python, Ruby, Perl and Golang, etc.
|
||||||
(add-hook 'python-mode-hook
|
(add-hook 'python-mode-hook
|
||||||
|
|
Loading…
Reference in a new issue