[Top][All Lists]

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

Re: how to keep .emacs files in synch

From: Edward O'Connor
Subject: Re: how to keep .emacs files in synch
Date: Thu, 04 Oct 2007 12:25:01 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix)

> 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)

reply via email to

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