r2 - 05 Mar 2005 - 22:36:55 - MickBeaverYou are here: TWiki >  CSDocs Web  > XEmacsFAQs

XEmacs

Xemacs No Longer Colorizes My Programs. How Can I Get This Back?

Starting with xemacs-21.1 (installed June, 2001), XEmacs changed the internal workings of how it parses some elisp commands. As a result, your .emacs file needs to be repaired to load the correct emacs settings.

How do I do that??

Here is the old code you need to change in your ~/.emacs file:

; Options Menu Settings
; =====================
(cond
 ((and (string-match "XEmacs" emacs-version)
       (boundp 'emacs-major-version)
       (or (and
            (= emacs-major-version 19)
            (>= emacs-minor-version 14))
           (= emacs-major-version 20))
       (fboundp 'load-options-file))
  (load-options-file "~/.xemacs-options")))
; ============================
; End of Options Menu Settings

; load variable config for xemacs (needs the customize package)
(cond
 ((and (string-match "XEmacs" emacs-version)
       (boundp 'emacs-major-version)
       (or (and
            (= emacs-major-version 19)
            (>= emacs-minor-version 14))
           (= emacs-major-version 20))
       (fboundp 'load-options-file))
  (load-options-file "~/.xemacs/init.el")))

Change it to read as follows:

; load variable config for xemacs (needs the customize package)
(cond
  ((string-match "XEmacs" emacs-version)
    (load-file "~/.xemacs")
    (setq-default custom-file "~/.xemacs")
    (load-file "~/.xemacs-options")))

TIP Note:You may have to add write permission to your ~/.emacs file to do this; run chmod +w ~/.emacs to do this.

I Tried To Save Xemacs Options, And It Dumped Core!

We have configured XEmacs to save its options to ~/.xemacs by default (you are free to change this, but you are on your own in doing that). This file must be writable, or XEmacs will crash and dump a core file.

To get around this:

  • Remove the core file; it is large and eats at your disk quota. Do it now before you forget.
  • Run chmod +w ~/.xemacs
  • Restart XEmacs and try to make the option changes again.

I'm New To Emacs. How Do I Use It?

Many of the functions you may want to use are accessible by the drop-down menus within Emacs (xemacs or emacs).

The manual is located at http://www.gnu.org/software/emacs/manual/.

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
CSL Home
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback