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.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'with-editor.org') diff --git a/with-editor.org b/with-editor.org index 73c11f7..edf0134 100644 --- a/with-editor.org +++ b/with-editor.org @@ -181,7 +181,7 @@ appropriate mode hooks: #+BEGIN_SRC emacs-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_SRC -- cgit v1.2.3