*Note: Following works for Doom Emacs. But with minor change, it should work for vanilla emacs as well
- Make sure you have
CMake
installed.- On macOS :
brew install cmake
- On Ubuntu based linux distros, it should be
sudo apt-get install cmake
- Otherwise use
dnf
orpacman
or appropriate command for your linux distro.
- On macOS :
- Enable
vterm
ininit.el
doom/reload
- This will install appropriate package, and will install and compile
libvterm
- Starting a Terminal is as simple as
M-x vterm
- I am running
tmux
inside ofvterm
to get multiple terminals running in different working directories.😄
Issues:
- I'm yet to figure out how to use
SPC
leader key without sending space character to the Terminal.- Workaround: I use mouse to click on non-terminal buffer. 😜
- As my normal workflow, I used
git commit
from insidevterm
where my default editor is vi/vim/nvim. When I type:wq
to save theCOMMIT_MSG
Emacs intercepts the keystrokes, rather than sending tovi
running insidevterm
running inside Emacs. 😆- Solution: Use Magit for the commits, rather than
vterm
- Solution: Use Magit for the commits, rather than