Don't mess up popups/neotree buffer when moving/swapping buffers
This commit is contained in:
parent
fb25f716f9
commit
a5ff60224d
4 changed files with 31 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue