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

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

Re: EmacsW32 invocation options


From: Lennart Borgman (gmail)
Subject: Re: EmacsW32 invocation options
Date: Tue, 01 May 2007 22:31:18 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666

Eli Zaretskii wrote:
From: Will <address@hidden>
Date: Tue, 01 May 2007 15:15:24 +0200

I'd like to use a shortcut on my desktop to start GNU Emacs with W32 bundle (patched, V1.46 - V1.50) so that my personal init-file is evaluated at start-up, which is _not_ in my home directory. The following commands however do not work (cf. Shortcut > Target):

"C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n -e "Z:\00_Preferences\Emacs\.emacs"

"C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n --eval "Z:\00_Preferences\Emacs\.emacs"

What am I doing wrong?

Why do you make this so complicated?  Why not

"C:\Program Files\Emacs\emacs\bin\runemacs.exe" --eval "Z:\00_Preferences\Emacs\.emacs"

? why use emacsclientw?


That is good advice for the unpatched version of Emacs, but for the patched version that comes with Emacs+EmacsW32 it should be handled differently.

The reason is that with the patched version you do not have to start Emacs server in your .emacs, it is started automatically by the first invocation of emacsclient. To still use that feature you can do something like this:

  emacsclientw.exe -n -e "load-file \"path-to-your-file\""

BTW there is a misunderstanding above. When you use -e the parameter is evaled, not the contents in the file. So you are trying to use the file name as an emacs lisp expression. (Fortunately that fails.)




reply via email to

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