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

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

Re: finding emacs version


From: Xavier Maillard
Subject: Re: finding emacs version
Date: Tue, 22 May 2007 06:37:57 +0200
User-agent: Rmail in GNU Emacs 23.0.51.1 on GNU/Linux

Hi,

This is what I am currently using to load a custom file according
to my `xm-emacs-name' variable which is set to emacs-23 for this
session.

(when (featurep 'custom)
  (setq custom-file
        (concat
         (or (getenv "XDG_CONFIG_HOME") "~") "/emacs/conf/"
         xm-emacs-name
         "-custom.el")
        )

  ;; load it, if it's there.
  (load custom-file t))

Hope that'll help.

        Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




reply via email to

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