all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Randy Haddox <randal.haddox@us.army.mil>
Subject: font-lock-add-keywords
Date: Thu, 05 Aug 2004 10:08:16 -0500	[thread overview]
Message-ID: <1091718496.4254.40.camel@haddox.ds.amrdec.army.mil> (raw)

I am using code in .emacs to find and color code various keywords.  I
haven't had any luck handling the "if" keyword when it doesn't starting
in column 1 (ie, has leading whitespace).  Most of the time the "if"
will start at the beginning.

(defface test-keyword6-face
  '((t (:foreground "gold")))
  "Keyword face.")
(font-lock-add-keywords 'latex-mode
  '(("^if\\|then\\|else\\|endif" . 'test-keyword6-face))
)


Any help would be much appreciated.


Thanks,
Randy

             reply	other threads:[~2004-08-05 15:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 15:08 Randy Haddox [this message]
     [not found] <mailman.0.1091718744.2011.help-gnu-emacs@gnu.org>
2004-08-05 15:39 ` font-lock-add-keywords Kevin Rodgers
2004-08-05 22:35 ` font-lock-add-keywords Arjan Bos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091718496.4254.40.camel@haddox.ds.amrdec.army.mil \
    --to=randal.haddox@us.army.mil \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.