[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax Highlighting Latency in Emacs
From: |
jab3 |
Subject: |
Re: Syntax Highlighting Latency in Emacs |
Date: |
Wed, 22 Dec 2004 19:18:34 -0500 |
Peter Lee finally wrote on Wed December 22 2004 04:55 pm:
>>>>> jab3 writes:
>
> jab3> Ah. That seems to be doing what I want. What if I just put the
> commands in
> jab3> my .emacs file? How would I type the command for that file?
>
> jab3> (highlight-regexp "\%s" 'font-lock-function-name-face) ???
>
> maybe something like:
>
> (global-set-key (kbd "C-c m") (lambda () (interactive) (highlight-regexp
> "\%s" "hi-yellow")))
Excellent. I got that to work with font-lock-function-name-face, so
everything's all starting to come together. I have a question though. I
had to do something odd (at least I consider it odd :); to make '\n' work
in the .emacs file with the lambda function, I had to use 4 \ for it to
only use the '\n'. That is,
(highlight-regexp "\\\\n" "font-lock-function-name-face")
is the only thing that worked correctly. If I only did "\\n" then Emacs
highlighted all 'n's. Why is it necessary to use '\\\\n' to represent
'\n'? I can understand '\\n' - it's just the double that is confusing
me. :)
Thanks for all your help,
jab3
Re: Syntax Highlighting Latency in Emacs, Pierre-Charles David, 2004/12/13
Re: Syntax Highlighting Latency in Emacs, Kai Grossjohann, 2004/12/13
Message not available
Re: Syntax Highlighting Latency in Emacs, jab3, 2004/12/21