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

OT: One .emacs file for both Emacses



Yes.  I have this ~/.emacs:

------------------------------------------------------------------------------;; -*- Mode: Emacs-Lisp -*-

(setq debug-on-error nil)
(setq debug-on-signal nil)

(setq my-lisp-path "/home/neil/elisp")

(setq load-path (cons my-lisp-path load-path))

(if running-xemacs (load ".xemacs") (load ".emacs"))
------------------------------------------------------------------------------

then in /home/neil/elisp/.emacs I have:

------------------------------------------------------------------------------;; -*- Mode: Emacs-Lisp -*-

(load "common.el")

<Emacs specific stuff follows>
------------------------------------------------------------------------------

and similar for .xemacs.  As the name implies, common.el has elisp
that is common to both.  I use XEmacs with VM for mail, and Emacs for
most other stuff.

On Sep 13, Holger Rauch (Holger.Rauch@heitec.de) wrote:
 > Hi!
 > 
 > Is it possible to have one ".emacs" file which can handle both GNU Emacs
 > and XEmacs? If so, what elisp construct do I have to use in order to
 > distinguish between both Emacs flavors?
 > 
 > Any help is greatly appreciated!
 > 
 > Greetings,
 > 
 > 	Holger

-- 
Neil L. Roeth
neil@occamsrazor.net



Reply to: