Don't build vterm-module in noninteractive sessions
Fixes 'doom compile' when :term vterm is enabled. Mentioned in #5086
This commit is contained in:
parent
8841011a95
commit
3d19fab59c
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,15 @@
|
|||
:commands vterm-mode
|
||||
:hook (vterm-mode . doom-mark-buffer-as-real-h)
|
||||
:hook (vterm-mode . hide-mode-line-mode) ; modeline serves no purpose in vterm
|
||||
:init
|
||||
;; HACK Because vterm clusmily forces vterm-module.so's compilation on us when
|
||||
;; the package is loaded, this is necessary to prevent it when
|
||||
;; byte-compiling this file (`use-package' blocks eagerly loads packages
|
||||
;; when compiled).
|
||||
(when noninteractive
|
||||
(advice-add #'vterm-module-compile :override #'ignore)
|
||||
(provide 'vterm-module))
|
||||
|
||||
:config
|
||||
(set-popup-rule! "^\\*vterm" :size 0.25 :vslot -4 :select t :quit nil :ttl 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue