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:
parent
af5add0e9e
commit
0e8f458d99
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue