Skip to content
askeblad edited this page Oct 17, 2021 · 1 revision

vterm

bash-4.3$ mkdir -p ~/.emacs.d/lisp/vterm
bash-4.3$ cat > ~/.emacs.d/init.el << EOF
> (let ((default-directory  "~/.emacs.d/lisp/"))
>   (normal-top-level-add-subdirs-to-load-path))
>
> (require 'vterm)
> EOF
bash-4.3$ pushd /tmp
/tmp ~
bash-4.3$ git clone -q https://github.com/akermu/emacs-libvterm.git
bash-4.3$ cd emacs-libvterm
bash-4.3$ mkdir build
bash-4.3$ cd build
bash-4.3$ cmake ..
-- The C compiler identification is GNU 5.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- No build type selected, defaulting to RelWithDebInfo
-- System libvterm detected
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/emacs-libvterm/build
bash-4.3$ make
Scanning dependencies of target vterm-module
[ 25%] Building C object CMakeFiles/vterm-module.dir/vterm-module.c.o
[ 50%] Building C object CMakeFiles/vterm-module.dir/utf8.c.o
[ 75%] Building C object CMakeFiles/vterm-module.dir/elisp.c.o
[100%] Linking C shared module ../vterm-module.so
[100%] Built target vterm-module
bash-4.3$ cd ..
bash-4.3$ strip --strip-unneeded vterm-module.so
bash-4.3$ mv vterm-module.so vterm.el ~/.emacs.d/lisp/vterm
bash-4.3$ popd
~
bash-4.3$ emacs -batch -f batch-byte-compile ~/.emacs.d/lisp/vterm/vterm.el
bash-4.3$ gzip -n9 ~/.emacs.d/lisp/vterm/vterm.el
bash-4.3$  

vterm

Clone this wiki locally