Restore minimal modeline in magit
With process indicator
This commit is contained in:
parent
8392c9dcf6
commit
f0013083c0
2 changed files with 2 additions and 5 deletions
|
@ -34,10 +34,6 @@ It is passed a user and repository name.")
|
||||||
(not (eq major-mode 'magit-process-mode)))))
|
(not (eq major-mode 'magit-process-mode)))))
|
||||||
(add-to-list 'doom-real-buffer-functions #'+magit-buffer-p nil #'eq)
|
(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
|
;; properly kill leftover magit buffers on quit
|
||||||
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit)
|
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit)
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
(add-hook 'doom-load-theme-hook #'doom-modeline-refresh-bars)
|
(add-hook 'doom-load-theme-hook #'doom-modeline-refresh-bars)
|
||||||
|
|
||||||
(add-hook '+doom-dashboard-mode-hook #'doom-modeline-set-project-modeline)
|
(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
|
;; Show indentation style in modeline. I'm not using
|
||||||
;; `doom-modeline-def-segment' to prevent eager macro expansion from loading
|
;; `doom-modeline-def-segment' to prevent eager macro expansion from loading
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'project
|
(doom-modeline-def-modeline 'project
|
||||||
'(bar window-number buffer-default-directory)
|
'(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
|
;; Some functions modify the buffer, causing the modeline to show a false
|
||||||
;; modified state, so we try to force them to behave.
|
;; modified state, so we try to force them to behave.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue