feature/popup: remove eval-when-compile
This fixes void-variable errors when byte-compiling this module.
This commit is contained in:
parent
7542f4a660
commit
9a1bf42075
1 changed files with 18 additions and 22 deletions
|
@ -145,12 +145,11 @@ ALIST supports one custom parameter: `size', which will resolve to
|
|||
;; Default popup rules & bootstrap
|
||||
;;
|
||||
|
||||
(eval-when-compile
|
||||
(when (featurep! +all)
|
||||
(when (featurep! +all)
|
||||
(set! :popup "^ \\*" '((slot . 1) (vslot . -1) (size . +popup-shrink-to-fit)))
|
||||
(set! :popup "^\\*" '((slot . 1) (vslot . -1)) '((select . t))))
|
||||
|
||||
(when (featurep! +defaults)
|
||||
(when (featurep! +defaults)
|
||||
(set! :popup "^\\*Completions" '((slot . -1) (vslot . -2)) '((transient . 0)))
|
||||
(set! :popup "^\\*Compil\\(ation\\|e-Log\\)" nil '((transient . 0) (quit . t)))
|
||||
(set! :popup "^\\*\\(?:scratch\\|Messages\\)" nil '((transient)))
|
||||
|
@ -165,9 +164,6 @@ ALIST supports one custom parameter: `size', which will resolve to
|
|||
'((select . t) (modeline . t) (quit) (transient . t)))
|
||||
(set! :popup "^\\*\\(?:\\(?:Pp E\\|doom e\\)val\\)"
|
||||
'((size . +popup-shrink-to-fit)) '((transient . 0) (select . ignore))))
|
||||
nil)
|
||||
|
||||
(setq +popup--display-buffer-alist (eval-when-compile +popup--display-buffer-alist))
|
||||
|
||||
(add-hook 'doom-init-ui-hook #'+popup-mode)
|
||||
(add-hook! '+popup-buffer-mode-hook #'(+popup|adjust-fringes +popup|set-modeline))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue