unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: customize versus own expressions in .emacs
Date: Tue, 29 Mar 2005 09:57:51 -0500	[thread overview]
Message-ID: <87acom4i2m.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.484.1112092111.28103.help-gnu-emacs@gnu.org

> (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.


        Stefan

  parent reply	other threads:[~2005-03-29 14:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-27 19:22 customize versus own expressions in .emacs Sebastian Luque
     [not found] ` <87d5tklwr5.fsf-by2PdLBuqAc@public.gmane.org>
2005-03-27 21:39   ` Jochen Küpper
2005-03-29 10:11 ` Peter Dyballa
     [not found] ` <mailman.484.1112092111.28103.help-gnu-emacs@gnu.org>
2005-03-29 11:33   ` Thien-Thi Nguyen
2005-03-29 14:47     ` Joe Corneli
2005-03-29 14:57   ` Stefan Monnier [this message]
     [not found] <mailman.353.1111951880.28103.help-gnu-emacs@gnu.org>
2005-03-29 14:55 ` Stefan Monnier
2005-04-02  4:29 ` Tim X
2005-04-04 13:39   ` J. David Boyd
2005-04-07  9:42     ` Tim X
2005-04-07 11:42       ` Pascal Bourguignon
2005-04-07 12:34       ` J. David Boyd
2005-04-07 16:45         ` Joe Corneli
2005-04-11  9:47         ` Tim X

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87acom4i2m.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).