diff options
| author | Michael Albinus | 2009-09-03 15:21:47 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-09-03 15:21:47 +0000 |
| commit | 3ef49c53697b30c29e01e3ea045daf26f1191cef (patch) | |
| tree | aee7c926552e6c2c87b80d9114aa959a506aed77 /doc | |
| parent | 66043531de984024e7856bff4ff8d07b26e94956 (diff) | |
| download | emacs-3ef49c53697b30c29e01e3ea045daf26f1191cef.tar.gz emacs-3ef49c53697b30c29e01e3ea045daf26f1191cef.zip | |
* tramp.texi (Frequently Asked Questions): New item for
emacsclient (extended).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/tramp.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 5ac95d9ea73..2021a6ecd0d 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -3242,6 +3242,21 @@ emacsclient @trampfn{ssh, user, host, /file/to/edit} | |||
| 3242 | @end example | 3242 | @end example |
| 3243 | 3243 | ||
| 3244 | @code{user} and @code{host} shall be related to your local host. | 3244 | @code{user} and @code{host} shall be related to your local host. |
| 3245 | |||
| 3246 | If you want to use Emacs Client also as editor for other programs, you | ||
| 3247 | could write a script @file{emacsclient.sh}: | ||
| 3248 | |||
| 3249 | @example | ||
| 3250 | #!/bin/sh | ||
| 3251 | emacsclient @trampfn{ssh, `whoami`, `hostname --fqdn`, $1} | ||
| 3252 | @end example | ||
| 3253 | |||
| 3254 | Then you must set the environment variable @code{EDITOR} pointing to | ||
| 3255 | that script: | ||
| 3256 | |||
| 3257 | @example | ||
| 3258 | export EDITOR=/path/to/emacsclient.sh | ||
| 3259 | @end example | ||
| 3245 | @end ifset | 3260 | @end ifset |
| 3246 | 3261 | ||
| 3247 | 3262 | ||