feature/popup: add hacks for wgrep, org, persp-mode & balance-windows
Plus +popup*close and +popup*save advice functions.
This commit is contained in:
parent
a9a731c1eb
commit
eedd86135e
2 changed files with 68 additions and 1 deletions
|
@ -324,3 +324,18 @@ prevent the popup(s) from messing up the UI (or vice versa)."
|
|||
(unless in-popup-p
|
||||
(select-window origin)))))))
|
||||
|
||||
|
||||
;;
|
||||
;; Advice
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun +popup*close (&rest _)
|
||||
"TODO"
|
||||
(+popup/close))
|
||||
|
||||
;;;###autoload
|
||||
(defun +popup*save (orig-fn &rest args)
|
||||
"Sets aside all popups before executing the original function, usually to
|
||||
prevent the popup(s) from messing up the UI (or vice versa)."
|
||||
(save-popups! (apply orig-fn args)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue