From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
To: help-gnu-emacs@gnu.org
Subject: Re: How to make emacs not load something in its path?
Date: Mon, 17 Nov 2014 22:02:32 +0100 [thread overview]
Message-ID: <87wq6t1qxj.fsf@vsl28t2g.ww011> (raw)
In-Reply-To: <87r3x1inbi.fsf@mailbox.org> (Alexander Baier's message of "Mon, 17 Nov 2014 21:28:33 +0100")
Alexander Baier <alexander.baier@mailbox.org> writes:
> On 2014-11-17 17:50 Harry Putnam wrote:
>> This may be a common thing but it never crossed my pea brain before.
>>
>> How would I stop emacs from loading something in its path?
>>
>> For example: If I wanted to have one emacs version load ~/.emacs and a
>> different version NOT load it.
>>
>> Or would it just be better to remove ~/.emacs and have each version
>> load its own ~/.emacs-24, or ~/.emacs-25
>
> You can write one init file that looks at the version of the current
> emacs and loads the correct file.
>
> Maybe the variable emacs-version will help you here.
yeah, for example for conditionals in your .emacs
;; version depending stuff
(cond ((= emacs-major-version 25)
;; ...
(message "Loaded Emacs-25 stuff"))
((= emacs-major-version 24)
;; ...
(message "Loaded Emacs-24 stuff")))
;; other potentially interesting variables:
emacs-version
emacs-minor-version
Dieter
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
prev parent reply other threads:[~2014-11-17 21:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-17 16:50 How to make emacs not load something in its path? Harry Putnam
2014-11-17 20:28 ` Alexander Baier
2014-11-17 21:02 ` H. Dieter Wilhelm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wq6t1qxj.fsf@vsl28t2g.ww011 \
--to=dieter@duenenhof-wilhelm.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.