feature/popup: mention custom 'size parameter in :popup

This commit is contained in:
Henrik Lissner 2018-01-06 03:09:15 -05:00
parent 8531b5245e
commit 4fdf4a58b4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -91,7 +91,10 @@ CONDITION can be a regexp string or a function. See `display-buffer' for a list
of possible entries for ALIST, which tells the display system how to initialize of possible entries for ALIST, which tells the display system how to initialize
the popup window. PARAMETERS is an alist of window parameters. See the popup window. PARAMETERS is an alist of window parameters. See
`+popup-window-parameters' for a list of custom parameters provided by the popup `+popup-window-parameters' for a list of custom parameters provided by the popup
module." module.
ALIST supports one custom parameter: `size', which will resolve to
`window-height' or `window-width' depending on `side'."
`(let ((alist ,alist) `(let ((alist ,alist)
(parameters ,parameters)) (parameters ,parameters))
,(when alist ,(when alist
@ -120,10 +123,10 @@ module."
(set! :popup "^\\*" nil '((select . t))) (set! :popup "^\\*" nil '((select . t)))
(set! :popup "^\\*\\(?:scratch\\|Messages\\)" nil '((transient))) (set! :popup "^\\*\\(?:scratch\\|Messages\\)" nil '((transient)))
(set! :popup "^\\*Help" (set! :popup "^\\*Help"
'((window-height . 0.2)) '((size . 0.2))
'((select . t))) '((select . t)))
(set! :+popup "^\\*doom:" (set! :+popup "^\\*doom:"
'((window-height . 0.35)) '((size . 0.35))
'((select . t) (quit) (transient)))) '((select . t) (quit) (transient))))
(setq +popup--display-buffer-alist (eval-when-compile +popup--display-buffer-alist)) (setq +popup--display-buffer-alist (eval-when-compile +popup--display-buffer-alist))