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

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

Re: Is there a way to abort loading .el file on condition?


From: Emanuel Berg
Subject: Re: Is there a way to abort loading .el file on condition?
Date: Fri, 03 May 2019 04:07:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Tomas Nordin wrote:

> What about having your .emacs basically empty
> with only a conditional load of
> a .emacs-work.el or .emacs-gnu.el file based
> on the version of Emacs reading the
> .emacs file?

Yes, have it all empty but for an `if' clause
to go to either file A or file B depending
on version.

Then put all other configuration/extensions in
neat files (a, b, c ... n)

In A, put A-specific stuff _only_ and then load
(a ... n) explicitly at your discretion.

In B, do the same, only have the B-specific
stuff there, as you understand of course.

Simple in theory and simple to setup in
practice! To deal with it in the long run when
you do changes to (a ... n) - perhaps not so
simple neither in theory nor practice... :(

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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