summaryrefslogtreecommitdiff
path: root/with-editor.org
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2016-08-12 23:56:00 +0200
committerJonas Bernoulli <jonas@bernoul.li>2016-08-12 23:56:00 +0200
commit706c8ce2b217edeaa9ea157cdfc18efc0313116f (patch)
tree4b9da8c707a20c9856f7a41c313b495a80988b7e /with-editor.org
parent07bb67b757a58da5a89e99cfc38bb449cd3edd6d (diff)
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.
Diffstat (limited to 'with-editor.org')
-rw-r--r--with-editor.org2
1 files changed, 1 insertions, 1 deletions
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