[Top][All Lists]

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

Re: [AUCTeX] ConTeXt Font Lock

From: Tassilo Horn
Subject: Re: [AUCTeX] ConTeXt Font Lock
Date: Tue, 07 Apr 2015 08:35:13 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Alexander Shukaev <address@hidden> writes:

Hi Alex,

> ;; Is this the proper way of cleaning up defaults? If not, then could
> you ;; please show the correct and safe way of doing it?
> (setq-default font-latex-match-reference-keywords-local nil
> font-latex-match-sectioning-0-keywords-local nil
> font-latex-match-sectioning-1-keywords-local nil)

These variables are automatically buffer-local anyway so there's no need
to "clean up defaults".  You probably want to use something like

  (setq font-latex-match-sectioning-0-keywords-local '(("startpart" ...)))

in you ConTeXt style.

> ;; Yes, I'm aware about "[{" stuff, but I don't like that text inside "[" or
> ;; "{" is highlighted with `font-lock-variable-name-face', I would rather
> ;; like it to stay `default' (what "" gives me). Any suggestions here?

No, if you don't like that, then don't use it.  Alternatively, you could
also keep the "[{" stuff and customize the relevant faces, i.e., make
them look like the default face.  But of course, then you'll loose the
argument highlighting also in places where you might like it.

> ;; In ConTeXt, there are also constructs like:
> ;; \starttitle[
> ;; title={My Title},
> ;; reference=xxx,
> ;; ]
> ;; Any chance of fontifying "My Title" similarly to
> ;; \title{My Title}
> ;; within current framework?

No, I don't think we have something predefined for highlighting the
contents of some specific value of some keyval argument.  But a regexp
that matches the title in the above is


Going from there, you should be able to write your own matching


reply via email to

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