mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Consider magit buffers real
So they can be switched to if buried
This commit is contained in:
@ -23,6 +23,12 @@ load everything.")
|
|||||||
magit-revision-show-gravatars '("^Author: " . "^Commit: "))
|
magit-revision-show-gravatars '("^Author: " . "^Commit: "))
|
||||||
|
|
||||||
(set! :popup "^\\(?:\\*magit\\|magit:\\)" :ignore)
|
(set! :popup "^\\(?:\\*magit\\|magit:\\)" :ignore)
|
||||||
|
|
||||||
|
;; Consider magit buffers real (so they can switched to)
|
||||||
|
(defun +magit-buffer-p (buf)
|
||||||
|
(with-current-buffer buf (derived-mode-p 'magit-mode)))
|
||||||
|
(add-to-list 'doom-real-buffer-functions #'+magit-buffer-p nil #'eq)
|
||||||
|
|
||||||
;; no mode-line in magit popups
|
;; no mode-line in magit popups
|
||||||
(add-hook 'magit-popup-mode-hook #'hide-mode-line-mode)
|
(add-hook 'magit-popup-mode-hook #'hide-mode-line-mode)
|
||||||
;; Clean up after magit by properly killing buffers
|
;; Clean up after magit by properly killing buffers
|
||||||
|
Reference in New Issue
Block a user