diff options
| author | nohzafk <149959021+nohzafk@users.noreply.github.com> | 2024-01-02 17:26:53 +0800 |
|---|---|---|
| committer | Gabriele Bozzola <sbozzolator@gmail.com> | 2024-01-02 09:07:38 -0800 |
| commit | c3a3a23a5eace137947524c93644204bf6b56cff (patch) | |
| tree | 644e69ef3a05d47939e3a4c321c64b2f56a6ade3 | |
| parent | e96c53f5035c841b20937b65142498bd8e161a40 (diff) | |
add example to use another font for vterm buffer
| -rw-r--r-- | README.md | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -270,7 +270,7 @@ For `fish` put this in your `~/.config/fish/config.fish`: ```fish function vterm_printf; - if begin; [ -n "$TMUX" ] ; and string match -q -r "screen|tmux" "$TERM"; end + if begin; [ -n "$TMUX" ] ; and string match -q -r "screen|tmux" "$TERM"; end # tell tmux to pass the escape sequences through printf "\ePtmux;\e\e]%s\007\e\\" "$argv" else if string match -q -- "screen*" "$TERM" @@ -520,6 +520,14 @@ In addition to that, you can disable some text properties (bold, underline, reverse video) setting the relative option to `t` (`vterm-disable-bold`, `vterm-disable-underline`, or `vterm-disable-inverse-video`). +You can use another font for vterm buffer + +``` elisp +(add-hook 'vterm-mode-hook + (lambda () + (set (make-local-variable 'buffer-face-mode-face) '(:family "IosevkaTerm Nerd Font")) + (buffer-face-mode t)) +``` ## Blink cursor When `vterm-ignore-blink-cursor` is `t`, vterm will ignore request from application to turn on or off cursor blink. @@ -769,7 +777,7 @@ file `vterm-module.h`, change the variable `SB_MAX`, and set the new value for `vterm-max-scrollback`. The potential maximum memory consumption of vterm buffers increases with `vterm-max-scrollback`, so setting `SB_MAX` to extreme values may lead to system instabilities and crashes. - + ### How can I automatically close vterm buffers when the process is terminated? There is an option for that: set `vterm-kill-buffer-on-exit` to `t`. |
