branch: elpa/with-editor
commit 706c8ce2b217edeaa9ea157cdfc18efc0313116f
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
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.
---
README.md | 2 +-
with-editor.el | 2 +-
with-editor.org | 2 +-
with-editor.texi | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 84dfa77..3f2daea 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ current Emacs instance to be used as editor by adding it to
the
appropriate mode hooks:
(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)
Some variants of this function exist, these two forms are
diff --git a/with-editor.el b/with-editor.el
index 4730af6..665de74 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -61,7 +61,7 @@
;; appropriate mode hooks:
;;
;; (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)
;; Some variants of this function exist, these two forms are
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
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