emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/with-editor 5272a3c 2/2: readme: Add vterm setup instructi


From: ELPA Syncer
Subject: [nongnu] elpa/with-editor 5272a3c 2/2: readme: Add vterm setup instructions
Date: Tue, 28 Sep 2021 14:58:11 -0400 (EDT)

branch: elpa/with-editor
commit 5272a3c7af183eddf59cbcd7cc82203755b61300
Author: Itai Y. Efrat <itai3397@gmail.com>
Commit: Jonas Bernoulli <jonas@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:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]