From 706c8ce2b217edeaa9ea157cdfc18efc0313116f Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Fri, 12 Aug 2016 23:56:00 +0200 Subject: instruct users to use term-exec-hook Previously we suggested `term-mode-hook' but that hook is run before the shell process is started and thus has no effect. Fixes #8. --- with-editor.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'with-editor.texi') diff --git a/with-editor.texi b/with-editor.texi index 0369130..66e8d64 100644 --- a/with-editor.texi +++ b/with-editor.texi @@ -227,7 +227,7 @@ appropriate mode hooks: @lisp (add-hook 'shell-mode-hook 'with-editor-export-editor) -(add-hook 'term-mode-hook 'with-editor-export-editor) +(add-hook 'term-exec-hook 'with-editor-export-editor) (add-hook 'eshell-mode-hook 'with-editor-export-editor) @end lisp -- cgit v1.2.3