This module provides a terminal emulator powered by libvterm. It is still in
alpha and requires a component be compiled (vterm-module.so).
The following commands are available to open it:
+vterm/toggle (SPC o t): Toggle vterm pop up window in the current project+vterm/here (SPC o T): Opens vterm in the current windowThis module provides no flags.
--with-modules option.libvterm installed on your system.make, cmake and a C compiler such as gcc so that vterm can
build vterm-module.so.To check if your build of Emacs was built with dynamic module support, check
bin/doom info for MODULES next to “System features”. If it’s there, you’re
good to go.
You can also check for --with-modules in the system-configuration-options
variable (SPC h v system-configuration-options).
brew install emacs-mac --with-modules
apt-get install libvterm-dev
pacman -S libvterm
libvterm
systemPackages = with pkgs; [
# emacs # no need for this, the next line includes emacs
((emacsPackagesNgGen emacs).emacsWithPackages (epkgs: [
epkgs.vterm
]))
];
Or for home-manager users:
programs.emacs = {
enable = true;
extraPackages = epkgs: [ epkgs.vterm ];
};
This already contains a version of vterm-module.so, so NixOS users need
not compile the module themselves as described below.
Note: The nixpkgs-version that is used needs to be compatible with the rest
of the plugins installed in doom. Therefore it might be necessary to pull in
emacs and/or emacsPackagesNgGen from unstable or another channel. Otherwise
arbitrary functionality of vterm might not work.
When you first load vterm, it will compile vterm-module.so for you. For this
to succeed, you need the following:
makecmakegcc
cmake will download needed libraries)There are several ways to manually install the module:
M-x vterm-module-compile to let emacs automatically compile and
install the module.
Modify vterm-module-cmake-args to pass arguments to the cmake build script.
e.g. To use a local build of libvterm instead of the included one.
(setq vterm-module-cmake-args "-DUSE_SYSTEM_LIBVTERM=yes")
WARNING: Emacs will hang during the compilation. It may take a while.
~/.emacs.d/.local/packages/elpa/vterm-<version>) and run
the following:
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
vterm-module.so elsewhere, but the module must be
moved/symlinked to
~/.emacs.d/.local/packages/elpa/vterm-<version>/vterm-module.so
vterm-module.so. Keep in mind that this folder will be deleted whenever the
vterm package is updated.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。