feature/popup: remove default slot & window-width

...and fix :popup not mapping the size parameter to the correct
dimension when no side is specified.
This commit is contained in:
Henrik Lissner 2018-01-07 05:39:28 -05:00
parent 25a2973c52
commit 84cba91e50
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 6 additions and 6 deletions

View file

@ -67,9 +67,7 @@ a brief description of some native window parameters that Emacs uses:
`pop-to-buffer'. Doom popups sets this. The default is nil.")
(defvar +popup-default-alist
'((slot . 1)
(window-height . 0.14)
(window-width . 26)
'((window-height . 0.16)
(reusable-frames . visible))
"The default alist for `display-buffer-alist' rules.")
@ -114,7 +112,7 @@ ALIST supports one custom parameter: `size', which will resolve to
(parameters ,parameters))
,(when alist
`(when-let* ((size (cdr (assq 'size alist)))
(side (cdr (assq 'side (append alist +popup-default-alist)))))
(side (or (cdr (assq 'side (append alist +popup-default-alist))) 'bottom)))
(map-delete alist 'size)
(map-put alist (if (memq side '(left right))
'window-width