help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how to keep .emacs files in synch


From: Andreas Röhler
Subject: Re: how to keep .emacs files in synch
Date: Thu, 4 Oct 2007 20:26:29 +0200
User-agent: KMail/1.8.2

Thanks a lot! Always nice to have some progress.

Andreas Röhler


Am Donnerstag, 4. Oktober 2007 18:25 schrieb Edward O'Connor:
> > 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)
>
> _______________________________________________
> help-gnu-emacs mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs




reply via email to

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