mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Use project mode-line in dired-mode.
This commit is contained in:
parent
ec4e6b932e
commit
a783f9c68e
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers."
|
||||||
(doom-modeline-set-main-modeline))))
|
(doom-modeline-set-main-modeline))))
|
||||||
;; Add hooks
|
;; Add hooks
|
||||||
(add-hook 'Info-mode-hook #'doom-modeline-set-info-modeline)
|
(add-hook 'Info-mode-hook #'doom-modeline-set-info-modeline)
|
||||||
|
(add-hook 'dired-mode-hook #'doom-modeline-set-project-modeline)
|
||||||
(add-hook 'magit-mode-hook #'doom-modeline-set-project-modeline)
|
(add-hook 'magit-mode-hook #'doom-modeline-set-project-modeline)
|
||||||
(add-hook 'dashboard-mode-hook #'doom-modeline-set-project-modeline)
|
(add-hook 'dashboard-mode-hook #'doom-modeline-set-project-modeline)
|
||||||
(add-hook 'image-mode-hook #'doom-modeline-set-media-modeline)
|
(add-hook 'image-mode-hook #'doom-modeline-set-media-modeline)
|
||||||
|
@ -217,6 +218,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers."
|
||||||
(setq-default mode-line-format doom-modeline--default-mode-line)
|
(setq-default mode-line-format doom-modeline--default-mode-line)
|
||||||
;; Remove hooks
|
;; Remove hooks
|
||||||
(remove-hook 'Info-mode-hook #'doom-modeline-set-info-modeline)
|
(remove-hook 'Info-mode-hook #'doom-modeline-set-info-modeline)
|
||||||
|
(remove-hook 'dired-mode-hook #'doom-modeline-set-project-modeline)
|
||||||
(remove-hook 'magit-mode-hook #'doom-modeline-set-project-modeline)
|
(remove-hook 'magit-mode-hook #'doom-modeline-set-project-modeline)
|
||||||
(remove-hook 'dashboard-mode-hook #'doom-modeline-set-project-modeline)
|
(remove-hook 'dashboard-mode-hook #'doom-modeline-set-project-modeline)
|
||||||
(remove-hook 'image-mode-hook #'doom-modeline-set-media-modeline)
|
(remove-hook 'image-mode-hook #'doom-modeline-set-media-modeline)
|
||||||
|
|
Loading…
Reference in a new issue