Refactor doom-popup-prop (cond -> pcase)
This commit is contained in:
parent
65696cebf6
commit
d6133adef0
1 changed files with 3 additions and 4 deletions
|
@ -152,10 +152,9 @@ only close popups that have an :autoclose property in their rule (see
|
|||
doom-popup-rules)
|
||||
(window-parameter window 'popup))
|
||||
prop)
|
||||
(cond ((eq prop :size)
|
||||
shackle-default-size)
|
||||
((eq prop :align)
|
||||
shackle-default-alignment))))
|
||||
(pcase prop
|
||||
(:size shackle-default-size)
|
||||
(:align shackle-default-alignment))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-popup-side (&optional window)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue