feature/popup: make modeline-setting more reliable

Some popups may retain their mode-line. Especially popups whose buffers
are displayed before their mode or content is inserted (maybe
asynchronously). This change tries to tackle that; ensuring that
mode-line setting is more consistent.
This commit is contained in:
Henrik Lissner 2018-03-18 02:37:10 -04:00
parent 01cb16cf42
commit 4a32213b38
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 23 additions and 13 deletions

View file

@ -166,7 +166,10 @@ ALIST supports one custom parameter: `size', which will resolve to
'((size . +popup-shrink-to-fit)) '((transient . 0) (select . ignore))))
(add-hook 'doom-init-ui-hook #'+popup-mode)
(add-hook! '+popup-buffer-mode-hook #'(+popup|adjust-fringes +popup|set-modeline))
(add-hook! '+popup-buffer-mode-hook
#'(+popup|adjust-fringes
+popup|set-modeline-on-enable
+popup|unset-modeline-on-disable))
;;