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

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

Re: [h-e-w] .emacs file(s) for multiple versions of Emacs on Windows


From: Eli Zaretskii
Subject: Re: [h-e-w] .emacs file(s) for multiple versions of Emacs on Windows
Date: Tue, 22 May 2012 07:51:49 +0300

> Date: Tue, 22 May 2012 00:31:53 -0400
> From: MBR <address@hidden>
> 
> Is there some way to have the different versions initialize
> themselves from different .emacs files?

Not easily (you could make a batch file for each version that sets
HOME in the environment as appropriate for each version, but that's
ugly and will probably bite you down the road, as HOME is used for
more than just .emacs).

> Alternatively, is there some Lisp code I can insert to test which
> version of Emacs is running, so I can conditionalize the code to do
> the right thing for each version?

  (if (>= emacs-major-version 23) ...




reply via email to

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