help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] emacs daemon and emacsclientw configuration on MS Windows


From: Jason Rumney
Subject: Re: [h-e-w] emacs daemon and emacsclientw configuration on MS Windows
Date: Wed, 27 Sep 2017 13:07:53 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> X:\path_to\emacs\bin>emacsclientw.exe
>> 
>> with no arguments pops a dialog error:
>> 
>> "emacsclientw.exe: file name or argument required"
>
> This is expected: it really does need a file name.

It does not need a file name if you pass the -c argument to open a new
frame.

I have the following set up as the "Emacs" shortcut command:

C:\emacs\bin\emacsclientw.exe --no-wait -c --alternate-editor=""


Additionally, you need to have the following in the emacs startup files
(~/.emacs.d/init.el or site-lisp/default.el):

(server-start)


A blank --alternate-editor (or -a) option starts the daemon on-demand if
it is not already running.  If you've started it already at startup,
then it should reuse that.

--
Jason Rumney



reply via email to

[Prev in Thread] Current Thread [Next in Thread]