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:
parent
01cb16cf42
commit
4a32213b38
2 changed files with 23 additions and 13 deletions
|
@ -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))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue