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

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

Re: A question about Syntax highlighting, different modes.


From: N. Raghavendra
Subject: Re: A question about Syntax highlighting, different modes.
Date: 12 Jul 2005 14:55:00 +0530
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

At 2005-07-12T09:08:44+02:00, David Kastrup wrote:

> > You can try `tex-mode' instead of `AUCTeX'.  You can do that an
> > expression like this in your Emacs startup file:
> >
> >   (add-to-list 'auto-mode-alist '("\\.tex\\'" . tex-mode))
> 
> This won't work reliably as AUCTeX aliases tex-mode to TeX-mode.  Once
> AUCTeX is activated, it is not really simple to get rid of it again.

You are right.  I didn't realize that AUCTeX is difficult to
deactivate.  However, putting this at the end of my init file ---
after the AUCTeX customization --- and restarting Emacs does
deactivate AUCTeX in my system:

  (delete 'tex-site features)
  (add-to-list 'auto-mode-alist '("\\.tex\\'" . tex-mode))
  (autoload 'tex-mode "tex-mode"
    "Use standard `tex-mode.el' instead of AUCTeX."
    t nil)

> However, in this case it makes much more sense to figure out what
> the problem is.

I like and use AUCTeX, and agree with you.  I suggested standard
`tex-mode.el' only because the OP wanted a "simple" mode.

Raghavendra.

-- 
N. Raghavendra <raghu@mri.ernet.in> | See message headers for contact
Harish-Chandra Research Institute   | and OpenPGP details.


reply via email to

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