[Top][All Lists]

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

[AUCTeX-devel] font, faces woes, texexp etc

From: Uwe Brauer
Subject: [AUCTeX-devel] font, faces woes, texexp etc
Date: Sat, 25 Sep 2010 11:22:28 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.21 (linux)


The following setting works in lisp mode

  (let ((lisp-regexp-4 " ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)"))
    (setq lisp-font-lock-keywords-1
          (append lisp-font-lock-keywords-1
                  (list (list lisp-regexp-4 0
                              'font-lock-log-warn-face t)))) 
    (setq lisp-font-lock-keywords-2
          (append lisp-font-lock-keywords-2
                  (list (list lisp-regexp-4 0
                              'font-lock-log-warn-face t)))))

Every word surrounded by an * gets highlighted by the

I tried something similar for LaTeX mode namely 
(add-to-list 'font-latex-keywords       ;Version-1.14
'(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face append t))

(add-to-list 'font-latex-keywords-1     ;Version-1.14
'(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face append t))

(add-to-list 'font-latex-keywords-2     ;Version-1.14
'(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face append t))

But it does not work the words surrounded by * don't get
highlighted. Unfortunately the docstring of
fonts-latex-keyword does not give much information.

Can anybody help me?

Uwe Brauer 

reply via email to

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