magit: remove popup hackery (isn't needed anymore + see #6)
This commit is contained in:
parent
3256102b31
commit
1a8ae4d451
1 changed files with 1 additions and 20 deletions
|
@ -51,28 +51,9 @@
|
||||||
(use-package magit
|
(use-package magit
|
||||||
:commands (magit-status)
|
:commands (magit-status)
|
||||||
:config
|
:config
|
||||||
(def-popup! (:custom (lambda (b &rest _) (derived-mode-p 'magit-mode)))
|
|
||||||
:align below :size 0.5)
|
|
||||||
|
|
||||||
;; Some wrassling must be done to get magit to kill itself, and trigger
|
|
||||||
;; shackle popup hooks.
|
|
||||||
(setq magit-bury-buffer-function
|
|
||||||
(lambda (&rest _) (doom/popup-close (selected-window)))
|
|
||||||
magit-display-buffer-function
|
|
||||||
(lambda (b)
|
|
||||||
(funcall (if (doom/popup-p (selected-window)) 'switch-to-buffer 'doom/popup-buffer) b)
|
|
||||||
(get-buffer-window b))
|
|
||||||
magit-display-file-buffer-function
|
|
||||||
(lambda (b)
|
|
||||||
(when doom-prev-buffer
|
|
||||||
(select-window (get-buffer-window doom-prev-buffer)))
|
|
||||||
(switch-to-buffer b)))
|
|
||||||
|
|
||||||
;; Prevent magit and evil-snipe conflicts
|
;; Prevent magit and evil-snipe conflicts
|
||||||
(add-hook 'magit-mode-hook 'turn-off-evil-snipe-override-mode)
|
(add-hook 'magit-mode-hook 'turn-off-evil-snipe-override-mode)
|
||||||
|
(require 'evil-magit))
|
||||||
(require 'evil-magit)
|
|
||||||
(evil-set-initial-state 'magit-popup-mode 'normal))
|
|
||||||
|
|
||||||
(after! vc-annotate
|
(after! vc-annotate
|
||||||
(evil-set-initial-state 'vc-annotate-mode 'normal)
|
(evil-set-initial-state 'vc-annotate-mode 'normal)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue