Restore minimal modeline in magit

With process indicator
This commit is contained in:
Henrik Lissner 2019-03-11 12:54:16 -04:00
parent 8392c9dcf6
commit f0013083c0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 2 additions and 5 deletions

View file

@ -34,10 +34,6 @@ It is passed a user and repository name.")
(not (eq major-mode 'magit-process-mode)))))
(add-to-list 'doom-real-buffer-functions #'+magit-buffer-p nil #'eq)
;; modeline isn't helpful in magit
(add-hook! '(magit-mode-hook magit-popup-mode-hook)
#'hide-mode-line-mode)
;; properly kill leftover magit buffers on quit
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit)

View file

@ -26,6 +26,7 @@
(add-hook 'doom-load-theme-hook #'doom-modeline-refresh-bars)
(add-hook '+doom-dashboard-mode-hook #'doom-modeline-set-project-modeline)
(add-hook 'magit-mode-hook #'doom-modeline-set-project-modeline)
;; Show indentation style in modeline. I'm not using
;; `doom-modeline-def-segment' to prevent eager macro expansion from loading
@ -67,7 +68,7 @@
(doom-modeline-def-modeline 'project
'(bar window-number buffer-default-directory)
'(misc-info mu4e github debug fancy-battery " " major-mode))
'(misc-info mu4e github debug fancy-battery " " major-mode process))
;; Some functions modify the buffer, causing the modeline to show a false
;; modified state, so we try to force them to behave.