[Top][All Lists]

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

Re: customize versus own expressions in .emacs

From: Stefan Monnier
Subject: Re: customize versus own expressions in .emacs
Date: Tue, 29 Mar 2005 09:57:51 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> (if (= emacs-major-version 20) (setq custom-file
> "~/.emacs-Abrichtung-20.el"))
> (if (= emacs-major-version 21) (setq custom-file
> "~/.emacs-Abrichtung-21.el"))
> (if (= emacs-major-version 22) (setq custom-file
> "~/.emacs-Abrichtung-22.el"))
> (load custom-file)

I of course strongly recommend against this style, since it naturally leads
to duplication of settings.
Just use `fboundp' or `boundp' where needed, or `ignore-errors'.
This way you have a single file to manage and you know the configuration
will be as close as possible between the different Emacs versions you
may use.


reply via email to

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