From ef27e1d08a2ac3f43444498f237f110220ff3511 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 12 Apr 2019 20:20:53 +0800 Subject: [PATCH] Use project mode-line for magit buffers. --- doom-modeline.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index 2a7d03c..69309c3 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -174,6 +174,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (with-current-buffer bname (doom-modeline-set-main-modeline)))) ;; Add hooks + (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) (add-hook 'circe-mode-hook #'doom-modeline-set-special-modeline) @@ -182,6 +183,7 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." ;; Restore mode-line (setq-default mode-line-format doom-modeline--default-mode-line) ;; Remove hooks + (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) (remove-hook 'circe-mode-hook #'doom-modeline-set-special-modeline)