mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Don't mess up popups/neotree buffer when moving/swapping buffers
This commit is contained in:
@ -68,9 +68,16 @@
|
||||
|
||||
;; There is no shackle-popup hook, so I hacked one in
|
||||
(advice-add 'shackle-display-buffer :after 'narf|run-popup-hooks)
|
||||
;; Keep track of popups
|
||||
(add-hook! 'shackle-popup-hook '(narf|popup-init narf|hide-mode-line))
|
||||
|
||||
(add-hook 'shackle-popup-hook 'narf|popup-init) ; Keep track of popups
|
||||
(add-hook 'shackle-popup-hook 'narf|hide-mode-line) ; No mode line in popups
|
||||
|
||||
;; Prevents popups from messaging with windows-moving functions
|
||||
(after! defuns-popup
|
||||
(defun narf*save-popups (orig-fun &rest args)
|
||||
(narf/popup-save (apply orig-fun args)))
|
||||
(advice-add 'narf--evil-window-move :around 'narf*save-popups)
|
||||
(advice-add 'narf--evil-swap-windows :around 'narf*save-popups))
|
||||
|
||||
;;
|
||||
;; Hacks
|
||||
|
Reference in New Issue
Block a user