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

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

Re: [h-e-w] launching emacs


From: franz.adis
Subject: Re: [h-e-w] launching emacs
Date: Mon, 14 May 2012 15:58:29 +0200

> For #2, the right code for the desktop/task-bar shortcut is exactly this:
>   emacsclientw.exe -na runemacs.exe -c
> This shortcut will start emacs from scratch if it's not running, and open a 
> new
> frame if it is.
> The -c is key: without it, you have to pass a file to open (even if it's "", 
> which
> does work but is uglier) or emacsclient will exit with an error.
> (Right-click on desktop, New Shortcut, etc., then drag the shortcut into
> taskbar if you want.)

Instead of using the -a option to emacsclient, I set the environment variable 
ALTERNATE_EDITOR. This makes it much easier to run emacsclient from the command 
line.

Best regards
Franz

reply via email to

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