VTerm in DOOM Emacs

Photo by todd kent on Unsplash

VTerm in DOOM Emacs

VTerm won't work OOTB on my emacs 28 with byte compilation, presumably because the 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:

$ brew install libvterm
$ cd develop/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:

(add-to-list 'load-path "~/develop/emacs/emacs-libvterm")

After this, VTerm works. Toggling the terminal is SPC o t.