From a783f9c68e1d33c21811adb81d3a420cd5ab8bdc Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 19 May 2019 15:59:13 +0800 Subject: [PATCH] Use project mode-line in dired-mode. --- doom-modeline.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index 3d9a9f2..e0d896c 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -204,6 +204,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (doom-modeline-set-main-modeline)))) ;; Add hooks (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 'dashboard-mode-hook #'doom-modeline-set-project-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) ;; Remove hooks (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 'dashboard-mode-hook #'doom-modeline-set-project-modeline) (remove-hook 'image-mode-hook #'doom-modeline-set-media-modeline)