Skip to content

Commit

Permalink
Don't build vterm-module in noninteractive sessions
Browse files Browse the repository at this point in the history
Fixes 'doom compile' when :term vterm is enabled.

Mentioned in doomemacs#5086
  • Loading branch information
hlissner committed May 24, 2021
1 parent 8841011 commit 3d19fab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/term/vterm/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3d19fab

Please sign in to comment.