]> git.eshelyaron.com Git - emacs.git/commitdiff
* tramp.texi (Frequently Asked Questions): New item for
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 3 Sep 2009 15:21:47 +0000 (15:21 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 3 Sep 2009 15:21:47 +0000 (15:21 +0000)
emacsclient (extended).

doc/misc/tramp.texi

index 5ac95d9ea73b8f499f8f382a8ffbff65434333b1..2021a6ecd0dfe01a2c8e4a0f2f4a813bcf64ea88 100644 (file)
@@ -3242,6 +3242,21 @@ emacsclient @trampfn{ssh, user, host, /file/to/edit}
 @end example
 
 @code{user} and @code{host} shall be related to your local host.
+
+If you want to use Emacs Client also as editor for other programs, you
+could write a script @file{emacsclient.sh}:
+
+@example
+#!/bin/sh
+emacsclient @trampfn{ssh, `whoami`, `hostname --fqdn`, $1}
+@end example
+
+Then you must set the environment variable @code{EDITOR} pointing to
+that script:
+
+@example
+export EDITOR=/path/to/emacsclient.sh
+@end example
 @end ifset