From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: latex fontification [more]
Date: Fri, 04 Jul 2014 00:19:23 +0200 [thread overview]
Message-ID: <87a98qt79w.fsf@web.de> (raw)
In-Reply-To: lottg3$2bqm$1@talisker.lacave.net
> > Bonjour,
Hi!
I have no experience with this, I just had a quick look at the code.
> > 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 guess this is because the variable is buffer local. Use
`setq-default` instead of `setq` to set the global binding.
> 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
I think it's a bug - in `bib-cite-minor-mode`. There was obviously
code added for xemacs (which still has `make-local-hook`), but it is
used unconditionally for all Emacsen - thus the error.
To prevent this, avoid turning on bib-cite-minor-mode. Having
fundamental mode in one buffer (as you saw it) is probably a side effect
of this error.
BTW, please make a bug report if this problem hasn't been reported or
fixed yet.
HTH,
Michael.
prev parent reply other threads:[~2014-07-03 22:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 21:51 latex fontification François Patte
2014-07-01 9:02 ` latex fontification [more] François Patte
2014-07-03 22:19 ` Michael Heerdegen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a98qt79w.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).