From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: brendan_vanhorn@yahoo.com (Brendan Van Horn) Newsgroups: gmane.emacs.help Subject: Adding font-lock keywords Date: 21 Apr 2003 14:05:19 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <82f061b2.0304211305.334e187@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1050959164 21323 80.91.224.249 (21 Apr 2003 21:06:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2003 21:06:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 21 23:06:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197iUE-0005XY-00 for ; Mon, 21 Apr 2003 23:06:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197iU3-00089A-03 for gnu-help-gnu-emacs@m.gmane.org; Mon, 21 Apr 2003 17:05:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 205.227.136.1 Original-X-Trace: posting.google.com 1050959119 10610 127.0.0.1 (21 Apr 2003 21:05:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 21 Apr 2003 21:05:19 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:112161 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8660 Greetings! I spent some time reading FAQs and posts I could find and I still seem to be missing something. I'm trying to add some extra keywords so that they are highlighted while editing. Here is what I came up with: ;; windows constants (setq my-win32-constant-keywords (regexp-opt '("COINIT_MULTITHREADED" "ICC_COOL_CLASSES" "NULL" "SW_SHOWDEFAULT" "VT_BSTR" "VT_I4"))) (font-lock-add-keywords 'c++-mode '((my-win32-constant-keywords . font-lock-constant-face))) Where am I going wrong??? Thanks! Brendan