diff options
Diffstat (limited to 'doc/misc')
| -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 | ||