[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclient wrapper to launch emacs server if none running?
From: |
David Kastrup |
Subject: |
Re: emacsclient wrapper to launch emacs server if none running? |
Date: |
Tue, 04 Oct 2005 03:33:54 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Jens Petersen <address@hidden> writes:
> Does anyone have an emacsclient wrapper script or program which
> can reliably launch emacs with server-start if none is running?
>From the Emacs manual:
The option `--alternate-editor=COMMAND' is useful when running
`emacsclient' in a script. It specifies a command to run if
`emacsclient' fails to contact Emacs. For example, the following
setting for the EDITOR environment variable will always give you an
editor, even if no Emacs server is running:
EDITOR="emacsclient --alternate-editor emacs +%d %s"
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum