core-popups: read rules from local var
This commit is contained in:
parent
17409e174d
commit
1ab5f86188
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ only close popups that have an :autoclose property in their rule (see
|
|||
"Close the current popup *if* its window doesn't have a noesc parameter."
|
||||
(interactive)
|
||||
(let ((window (selected-window)))
|
||||
(if (window-parameter window :noesc)
|
||||
(if (plist-get doom-popup-rules :noesc)
|
||||
(call-interactively (if (featurep 'evil)
|
||||
#'evil-force-normal-state
|
||||
#'keyboard-escape-quit))
|
||||
|
|
|
@ -230,7 +230,7 @@ properties."
|
|||
(when (doom-popup-p window)
|
||||
(when doom-popup-remember-history
|
||||
(setq doom-popup-history (list (doom--popup-data window))))
|
||||
(let ((autokill-p (window-parameter window :autokill)))
|
||||
(let ((autokill-p (plist-get doom-popup-rules :autokill)))
|
||||
(with-selected-window window
|
||||
(doom-popup-mode -1)
|
||||
(when autokill-p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue