autoconf
[Top][All Lists]
Advanced

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

Fwd: autoconf-mode: mark autoconf functions as builtin


From: Arne Babenhauserheide (IMK)
Subject: Fwd: autoconf-mode: mark autoconf functions as builtin
Date: Tue, 5 Mar 2013 16:12:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130131 Thunderbird/17.0.2

Hi,

I added highlighting of functions like AC_INIT for autoconf-mode and
thought it might be useful by default.

Here’s the little Emacs Lisp snippet:

(add-to-list 'autoconf-font-lock-keywords
'("\\(\\(AC\\|AS\\)_.+?\\)\\((\\|\n\\)" (1 font-lock-builtin-face)))

You might want to just include the matching in the variable definition:

("\\(\\(AC\\|AS\\)_.+?\\)\\((\\|\n\\)" (1 font-lock-builtin-face))

I also thought about marking the content inside square brackets (similar
to this: http://youtu.be/4q_inV9M_us?t=4m51s ), but I could not find a
good way to do that… (multiline regexps seem to be problematic)

I think the easiest way would be to just mark square brackets around the
arguments but could not find a suitable default face…

Best wishes,
Arne





Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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