Go to the first, previous, next, last section, table of contents.

XEmacs Features

This section describes the difference between Emacs Version 18 and XEmacs.

General Changes

You can conditionalize your `.emacs' file as follows so that XEmacs commands are invoked only when you are in XEmacs:
(cond ((string-match "Lucid" emacs-version)
       ;;
       ;; Code for any version of Lucid Emacs or XEmacs goes here
       ;;
       ))

(cond ((and (string-match "XEmacs" emacs-version)
	    (or (> emacs-major-version 19)
	        (>= emacs-minor-version 12)))
       ;;
       ;; Code which requires XEmacs version 19.12 or newer goes here
       ;;
       ))

(cond ((>= emacs-major-version 19)
       ;;
       ;; Code for any vintage-19 emacs goes here
       ;;
       ))

(cond ((and (not (string-match "Lucid" emacs-version))
	    (= emacs-major-version 19))
       ;;
       ;; Code specific to FSF Emacs 19 (not XEmacs) goes here
       ;;
       ))

(cond ((< emacs-major-version 19)
       ;;
       ;; Code specific to emacs 18 goes here
       ;;
       ))
Of particular interest for use in `.emacs' files are: These new variables are only present in XEmacs:

Changes in Key Bindings

XEmacs has the following new default function keybindings:

HELP
Same as C-h.
UNDO
Same as M-x undo.
CUT
Same as the Cut menu item; that is, it copies the selected text to the X Clipboard selection.
COPY
Same as the Copy menu item.
PASTE
Same as the Paste menu item.
PGUP
Same as M-v.
PGDN
Same as C-v.
HOME
Same as M-<.
END
Same as M->.
LEFT-ARROW
Same as the function backward-char.
RIGHT-ARROW
Same as the function forward-char.
UP-ARROW
Same as the function previous-line.
DOWN-ARROW
Same as the function next-line.

Go to the first, previous, next, last section, table of contents.