branch: elpa/with-editor commit f04b3c790d59103a4145066de747dc9a6df6b325 Author: Louai Al-Khanji <lo...@astranis.com> Commit: Jonas Bernoulli <jo...@bernoul.li>
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'. --- docs/with-editor.org | 2 +- docs/with-editor.texi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/with-editor.org b/docs/with-editor.org index 0df74ca420..ee624c9f47 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 feceb2e4e7..d834045a81 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: