summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai@astranis.com>2023-06-22 13:16:40 -0700
committerJonas Bernoulli <jonas@bernoul.li>2023-07-11 14:03:02 +0200
commitf04b3c790d59103a4145066de747dc9a6df6b325 (patch)
tree843593d4e023edd5151d17f62cc1eb5b2a9f2bb4 /docs
parent9e437353ee817b8e6a9ffce53e37fe5a6fcb4294 (diff)
manual: Fix name of vterm's hook
This seems to work properly only with `vterm-mode-hook', not with `vterm-exec-hook'. "with-editor.el" correctly mentions `vterm-mode-hook', but the documentation referred to `vterm-exec-hook'.
Diffstat (limited to 'docs')
-rw-r--r--docs/with-editor.org2
-rw-r--r--docs/with-editor.texi2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/with-editor.org b/docs/with-editor.org
index 0df74ca..ee624c9 100644
--- a/docs/with-editor.org
+++ b/docs/with-editor.org
@@ -187,7 +187,7 @@ mode hooks:
(add-hook 'shell-mode-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-exec-hook 'with-editor-export-editor)
+ (add-hook 'vterm-mode-hook 'with-editor-export-editor)
#+end_src
Some variants of this function exist; these two forms are equivalent:
diff --git a/docs/with-editor.texi b/docs/with-editor.texi
index feceb2e..d834045 100644
--- a/docs/with-editor.texi
+++ b/docs/with-editor.texi
@@ -247,7 +247,7 @@ mode hooks:
(add-hook 'shell-mode-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-exec-hook 'with-editor-export-editor)
+(add-hook 'vterm-mode-hook 'with-editor-export-editor)
@end lisp
Some variants of this function exist; these two forms are equivalent: