mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(popup): add wdired hacks
Previously, wdired actions will not close popup windows, which is cumbersome to use. We've already added similar hacks to dired. Now it's time to add similar hacks to wdired.
This commit is contained in:
@ -372,6 +372,12 @@ Ugh, such an ugly hack."
|
||||
(letf! ((#'switch-to-buffer-other-window #'pop-to-buffer))
|
||||
(apply fn args))))
|
||||
|
||||
;;;###package wdired
|
||||
(progn
|
||||
;; close the popup after you're done with a wdired buffer
|
||||
(advice-add #'wdired-abort-changes :after #'+popup-close-a)
|
||||
(advice-add #'wdired-finish-edit :after #'+popup-close-a))
|
||||
|
||||
;;;###package wgrep
|
||||
(progn
|
||||
;; close the popup after you're done with a wgrep buffer
|
||||
|
Reference in New Issue
Block a user