From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?B?Tm9yZGz2dw==?= Newsgroups: gmane.emacs.help Subject: Fontifying function calls in emacs-lisp-mode Date: 24 Apr 2007 08:47:29 -0700 Organization: http://groups.google.com Message-ID: <1177429649.782913.249070@t38g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1177432522 12156 80.91.229.12 (24 Apr 2007 16:35:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2007 16:35:22 +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 Apr 24 18:35:20 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HgNz4-0004Ux-9E for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Apr 2007 18:35:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgO4a-00080o-RQ for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Apr 2007 12:41:00 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!t38g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1177429656 7644 127.0.0.1 (24 Apr 2007 15:47:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 24 Apr 2007 15:47:36 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 netcache (NetCache NetApp/6.1.1RC1) Complaints-To: groups-abuse@google.com Injection-Info: t38g2000prd.googlegroups.com; posting-host=150.227.15.253; posting-account=T25tbw0AAADoaalO12jRFAyM2dkqq2mX Original-Xref: shelby.stanford.edu gnu.emacs.help:147491 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43098 Archived-At: Hey there, Emacs Lovers! I am trying to fontify function calls in emacs-lisp-mode and have come up with the following code. It however replaces fontification of keyword statements, such as defun, defface, etc, eventhough i use "keep". How can I avoid this? ;; Function call face (defface font-lock-function-call-face ;function-call '((((class color)) (:inherit font-lock-function-name-face :bold nil))) "Font Lock mode face used to highlight function calls.") ;; Emacs LISP Extra Font Locking (defun pnw-emacs-lisp-mode-extra-font-locking () (font-lock-add-keywords nil (list ;; special constants nil and t (cons (concat "\\<" "\\(" "nil" "\\|" "t" "\\)" "\\>") '(1 'font-lock-number-literal-face keep)) ;; function calls (cons (concat "(" "[\t ]*" "\\(" "\\w+" "\\)") '(1 'font-lock-function-call-face keep)) ))) (add-hook 'emacs-lisp-mode-hook 'pnw-emacs-lisp-mode-extra-font- locking) Thanks in advance, Nordl=F6w