[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/doc/misc tramp.texi
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] emacs/doc/misc tramp.texi |
Date: |
Thu, 03 Sep 2009 15:21:47 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael Albinus <albinus> 09/09/03 15:21:47
Modified files:
doc/misc : tramp.texi
Log message:
* tramp.texi (Frequently Asked Questions): New item for
emacsclient (extended).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/misc/tramp.texi?cvsroot=emacs&r1=1.30&r2=1.31
Patches:
Index: tramp.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/misc/tramp.texi,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- tramp.texi 3 Sep 2009 13:21:04 -0000 1.30
+++ tramp.texi 3 Sep 2009 15:21:47 -0000 1.31
@@ -3242,6 +3242,21 @@
@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}:
+
address@hidden
+#!/bin/sh
+emacsclient @trampfn{ssh, `whoami`, `hostname --fqdn`, $1}
address@hidden example
+
+Then you must set the environment variable @code{EDITOR} pointing to
+that script:
+
address@hidden
+export EDITOR=/path/to/emacsclient.sh
address@hidden example
@end ifset