Getting the EMACS VTerm module to work in DOOM Emacs
Moving to a new Mac at the end of 2023 using EMACS 29.1 – It seems this problem has either gone away or I did something wrong initially.
vterm
works OOTB now, when installing the package it asks to compile the needed extension and that worked flawless.
VTerm won’t work OOTB on my emacs 28 with byte compilation, presumably because compilation of the emacs-vterm
module is hacked around in the doom vterm module.
Emacs complains that It can’t find the vterm module.
So we need to build that module manually:
1
2
3
4
5
6
7
8
$ brew install libvterm
$ cd develip/emacs
$ git clone https://github.com/akermu/emacs-libvterm.git
$ cd emacs-libvterm
$ mkdir -p build
$ cd build
$ cmake ..
$ make
Now we need to tell emacs how to find the vterm module. I added this on the top of my ~/.doom.d/config.el
:
1
(add-to-list 'load-path "~/develop/emacs/emacs-libvterm")
After this, vterm
works. Toggling the terminal is SPC o t
.
This post is licensed under CC BY 4.0 by the author.