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

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

Re: EmacsW32 invocation options


From: Eli Zaretskii
Subject: Re: EmacsW32 invocation options
Date: Tue, 01 May 2007 22:37:36 +0300

> 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?

Btw, please note that eval'ing .emacs like this will work in subtly
different ways that what Emacs does with .emacs found in your home
directory.  Some customizations, especially those related to setup of
the Emacs display, will only work correctly when Emacs finds .emacs in
your home directory, because then it evaluates .emacs before the
display is set, whereas --eval is done after that, when it's too late
to influence how Emacs initial frames and windows are set.




reply via email to

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