From: jab3 <manual@helpdesk.org>
Subject: Re: Syntax Highlighting Latency in Emacs
Date: Tue, 21 Dec 2004 15:03:02 -0500 [thread overview]
Message-ID: <k9idnbtki_LkHFXcRVn-1g@comcast.com> (raw)
In-Reply-To: ubrcn33ap.fsf@gmail.com
Peter Lee finally wrote on Tue December 21 2004 01:38 pm:
>>>>> jab3 writes:
>
> jab3> I'm also interested in figuring out (maybe
> jab3> with regular expressions) a way to make Emacs emulate another
> vim feature jab3> that I do like: highlighting control characters in
> quoted strings in a C
> jab3> file. For instance, in printf("Hello %s\n", name); I would like
> the %s and jab3> \n highlighted in a different color from the normal
> string quote color.
>
> Do you mean like
> M-x highlight-regexp [ret] \%s
> M-x highlight-regexp [ret] \\n
>
> C-x w h
>
> Or do you mean something more permanent? You could probably use
> highlight-regexp in conjunction with one of the font-lock
> callbacks... But there's probably a better way.
Ah. That seems to be doing what I want. What if I just put the commands in
my .emacs file? How would I type the command for that file?
(highlight-regexp "\%s" 'font-lock-function-name-face) ???
I know that's probably not right, but would something like that work?
Thanks,
jab3
next prev parent reply other threads:[~2004-12-21 20:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-12 1:42 Syntax Highlighting Latency in Emacs jab3
2004-12-12 13:13 ` Thien-Thi Nguyen
2004-12-12 13:22 ` Peter Dyballa
[not found] ` <mailman.5367.1102858474.27204.help-gnu-emacs@gnu.org>
2004-12-12 22:23 ` jab3
2004-12-21 18:38 ` Peter Lee
2004-12-21 20:03 ` jab3 [this message]
2004-12-22 21:55 ` Peter Lee
2004-12-23 0:18 ` jab3
2004-12-27 17:09 ` Kevin Rodgers
2004-12-13 9:35 ` Pierre-Charles David
2004-12-13 12:08 ` Kai Grossjohann
[not found] ` <mailman.5589.1102940728.27204.help-gnu-emacs@gnu.org>
2004-12-13 23:42 ` Stefan Monnier
2004-12-21 20:04 ` jab3
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=k9idnbtki_LkHFXcRVn-1g@comcast.com \
--to=manual@helpdesk.org \
/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).