[oclug] Emacs or Xemacs, that is the question

Jody McIntyre jodym at oeone.com
Tue Feb 13 10:56:58 EST 2001


Without going into my preference in emacsen, here is one way to share a .emacs
between both:

;; Checks to see if you're running xemacs or GNU emacs.
(defvar running-xemacs 
  (string-match "XEmacs\\|Lucid" emacs-version))

;; Put this around GNU emacs specific stuff:
(cond ((not running-xemacs)
	;; code
))

;; Put this around xemacs specific stuff:
(cond (running-xemacs)
	;; code
)

You can have as many of these sections as you want in any order.  Anything
not enclosed by one of these sections will, of course, be executed by both
emacsen.

-- 
Jody McIntyre, jodym at oeone.com - OEone Corporation, Hull, Quebec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20010213/0a1823c1/attachment.bin


More information about the OCLUG mailing list