Article View: gnu.emacs.bug
Article #87713font locking tex-mode
From: Erez Zadok, HWank1
Date: Sat, 03 Sep 1994 22:43
Date: Sat, 03 Sep 1994 22:43
14 lines
1276 bytes
1276 bytes
In GNU Emacs 19.25.1 of Thu Jun 2 1994 on ober.cs.columbia.edu (sparc-sun-solaris2) I turned on font-lock for tex-mode, and found out that nothing but % comments were being fontified. It turns out that the major mode defined for *.tex files in tex-mode.el is "plain-tex-mode". There is no default support for plain-tex-mode or latex-mode in font-lock.el, only tex-mode. Accordingly I suggest you add ((eq major-mode 'plain-tex-mode) tex-font-lock-keywords) ((eq major-mode 'latex-tex-mode) tex-font-lock-keywords) to font-lock-set-default. I did that and it worked fine. Erez.
Technical Details
Message-ID:
<199409032240.SAA29962@shekel.mcl.cs.columbia.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!cs.utexas.edu!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.columbia.edu!ezkShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,1260557f75184128,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-03 16:02:50 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!cs.utexas.edu!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.columbia.edu!ezk From: ezk@cs.columbia.edu (Erez Zadok, HWank1) Newsgroups: gnu.emacs.bug Subject: font locking tex-mode Date: 3 Sep 1994 18:43:11 -0400 Organization: GNUs Not Usenet Lines: 14 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199409032240.SAA29962@shekel.mcl.cs.columbia.edu>