summaryrefslogtreecommitdiff
path: root/man/misc.texi
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-01-12 13:43:51 +0000
committerGerd Moellmann <gerd@gnu.org>2000-01-12 13:43:51 +0000
commitb191e04eb72012bef22634b125d4adf1ee7d70c8 (patch)
treea21da7a2fe375e8c7176f67a137399b65b7484b2 /man/misc.texi
parent9d192c1ad56b71067c77bdebd0c2c4f8251b1837 (diff)
downloademacs-b191e04eb72012bef22634b125d4adf1ee7d70c8.tar.gz
New option --alternate-editor for emacsclient.
Diffstat (limited to 'man/misc.texi')
-rw-r--r--man/misc.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/man/misc.texi b/man/misc.texi
index 75042888e91..28e035bfadd 100644
--- a/man/misc.texi
+++ b/man/misc.texi
@@ -1177,6 +1177,19 @@ names that are temporary.
returns immediately without waiting for you to ``finish'' the buffer in
Emacs.
+ If you have forgotten to start Emacs, then the option
+@samp{--alternate-editor=@var{command}} may be useful. It specifies a
+command to run if @code{emacsclient} fails to contact Emacs. For
+example, the following setting for the @var{EDITOR} environment variable
+will always give an editor, even if Emacs is not running.
+
+@example
+EDITOR="emacsclient --alternate-editor vi +%d %s"
+@end example
+
+The environment variable @var{ALTERNATE_EDITOR} has the same effect, but
+the value of the @samp{--alternate-editor} takes precedence.
+
@menu
* Invoking emacsclient::
@end menu