From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Fran=E7ois_Patte?= Newsgroups: gmane.emacs.help Subject: Re: latex fontification [more] Date: Tue, 01 Jul 2014 11:02:58 +0200 Organization: Service de news de lacave.net Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1404209520 19398 80.91.229.3 (1 Jul 2014 10:12:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 10:12:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 01 12:11:54 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X1v2X-0003Dj-Hu for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 12:11:53 +0200 Original-Received: from localhost ([::1]:42624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1u0e-0005q7-G4 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 05:05:52 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: arennes-653-1-320-214.w109-218.abo.wanadoo.fr Original-X-Trace: talisker.lacave.net 1404205379 77654 109.218.159.214 (1 Jul 2014 09:02:59 GMT) Original-X-Complaints-To: abuse@lacave.net Original-NNTP-Posting-Date: Tue, 1 Jul 2014 09:02:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:206204 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98475 Archived-At: Le 30/06/2014 23:51, François Patte a écrit : > Bonjour, > > I would like to have a syntax colorisation for some TeX commands using > Auctex. > > I found on the Internet this way: add to .emacs file: > > (setq font-latex-match-reference-keywords > '( > ("footnotea" "[{") > ("footnoteb" "[{") > ("footnotec" "[{") > ("edtext" "[{") > ("Afootnote" "[{") > ("Bfootnote" "[{") > ("Cfootnote" "[{") > ("lemma" "[{"))) > > And the commands \footnotes, \footnoteb etc will be highlighted... > > This doesn't work for me.... Did I miss something? I have to add this: it works for some buffer and not for some other! I tried to force latex mode: M-x latex-mode but this does not work symbol's function definition is void : make-local-hook When I load a file with .tex extension, I have a similar message en the buffer "messages": File mode specification error: (void-function make-local-hook) But for some file I have this in the lower bar: (Latex/P Bcite Arev Fill) And in some other: (Fundamental Bcite Arev Fill) Why? Moreover, I found on the web that make-local-hook is now deprecated and has disappeared from Emacs 24, but I am running Emacs 24.3.1 Can someone help me? thank you -- François Patte Université Paris Descartes