Consider magit buffers real

So they can be switched to if buried
This commit is contained in:
Henrik Lissner 2018-06-02 10:53:51 +02:00
parent e66abfb9e8
commit 6d218fc5a0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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