From: Edward O'Connor <hober0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to keep .emacs files in synch
Date: Thu, 04 Oct 2007 12:25:01 -0400 [thread overview]
Message-ID: <86641monj6.fsf@rakim.cfhp.org> (raw)
In-Reply-To: 200710041124.23974.andreas.roehler@online.de
> Solved it in my ~/.emacs file that way:
> (cond ((string-match "XEmacs\\|Lucid" emacs-version)
Better to test (featurep 'xemacs).
> (when (file-readable-p "~/.xemacs/init.el")
You could roll this into the cond test. Same goes for the other cond
clauses. That is,
(cond ((and (featurep 'xemacs) (file-readable-p "~/.xemacs/init.el"))
(load "~/.xemacs/init.el" nil t))
...)
This'll let you avoid explicit progns, like in this clause of yours:
> ((or (string-match "22" (emacs-version))
> (string-match "23" (emacs-version)))
> (if
> (file-readable-p "~/.gnu-emacs-cvs-custom")
> (progn (load "~/.gnu-emacs-cvs-custom" t t)
next prev parent reply other threads:[~2007-10-04 16:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 17:43 how to keep .emacs files in synch kj
2007-10-03 18:51 ` Ekkehard Görlach
2007-10-03 19:16 ` Harald Hanche-Olsen
2007-10-03 19:30 ` Andrew Walrond
2007-10-04 9:24 ` Andreas Röhler
2007-10-04 16:25 ` Edward O'Connor [this message]
2007-10-04 18:26 ` Andreas Röhler
2007-10-04 7:03 ` Rainer Stengele
2007-10-05 16:57 ` kj
2007-10-04 8:31 ` William Xu
2007-10-04 9:53 ` Tim X
2007-10-04 11:34 ` weber
2007-10-04 12:14 ` Andrew Walrond
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=86641monj6.fsf@rakim.cfhp.org \
--to=hober0@gmail.com \
--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.
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).