unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: frodetj@gmail.com
Subject: Re: Syntax highlighting keywords starting with #
Date: 3 Nov 2005 11:55:12 -0800	[thread overview]
Message-ID: <1131047712.437935.238430@g47g2000cwa.googlegroups.com> (raw)
In-Reply-To: <87hdatyale.fsf-monnier+gnu.emacs.help@gnu.org>


I believe the following code does the trick?

(defun psc-mode ()
  (set (make-local-variable 'font-lock-defaults)
'(psc-font-lock-keywords)))

It was actually working to remove the \\<. But it would be rather neat
have it, so that
#PROCESS
is highlighted, and
CRAP#PROCESS
is not.

I'm not able to make this work for the #, but for other characters it's
working fine.

Any advice?

  reply	other threads:[~2005-11-03 19:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 12:11 Syntax highlighting keywords starting with # frodetj
2005-11-03 16:05 ` frodetj
2005-11-03 16:12 ` Stefan Monnier
2005-11-03 19:55   ` frodetj [this message]
2005-11-04  3:43     ` Ian Zimmerman
     [not found]     ` <mailman.13898.1131075812.20277.help-gnu-emacs@gnu.org>
2005-11-04 11:27       ` Frode
2005-11-22 19:53         ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1131047712.437935.238430@g47g2000cwa.googlegroups.com \
    --to=frodetj@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).