branch: elpa/with-editor commit 5272a3c7af183eddf59cbcd7cc82203755b61300 Author: Itai Y. Efrat <itai3...@gmail.com> Commit: Jonas Bernoulli <jo...@bernoul.li>
readme: Add vterm setup instructions --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3f2daea..4d41774 100644 --- a/README.md +++ b/README.md @@ -26,15 +26,16 @@ which always sets `$EDITOR` for all Emacs commands which ultimately use `shell-command` to asynchronously run some shell command. The command `with-editor-export-editor` exports `$EDITOR` or -another such environment variable in `shell-mode`, `term-mode` and -`eshell-mode` buffers. Use this Emacs command before executing a -shell command which needs the editor set, or always arrange for the -current Emacs instance to be used as editor by adding it to the -appropriate mode hooks: +another such environment variable in `shell-mode`, `eshell-mode`, +`term-mode` and `vterm-mode` buffers. Use this Emacs command +before executing a shell command which needs the editor set, or +always arrange for the current Emacs instance to be used as editor +by adding it to the appropriate mode hooks: (add-hook 'shell-mode-hook 'with-editor-export-editor) - (add-hook 'term-exec-hook 'with-editor-export-editor) (add-hook 'eshell-mode-hook 'with-editor-export-editor) + (add-hook 'term-exec-hook 'with-editor-export-editor) + (add-hook 'vterm-mode-hook 'with-editor-export-editor) Some variants of this function exist, these two forms are equivalent: