unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
[parent not found: <mailman.1.1118779995.2857.help-gnu-emacs@gnu.org>]
* Separating // and /**/ comment fontification
@ 2005-06-07 22:09 Ryan Bowman
  0 siblings, 0 replies; 5+ messages in thread
From: Ryan Bowman @ 2005-06-07 22:09 UTC (permalink / raw)


I would like /* */ comments to fontify differently
from // comments (in jde-mode).

I added the following to my .emacs but // line
comments are still fontified using
font-lock-comment-face.

(defface new-font-lock-comment-face
  '((t (:foreground "Red"))))

(add-hook 'font-lock-mode-hook
  (function
   (lambda ()
     (setq font-lock-keywords
           (append font-lock-keywords
                   '(("//.*$" (0
'new-font-lock-comment-face))))))))

How can I change the fontification of one (or the
other) to use a different face?

----
Ryan Bowman

There is no vi there is only Emacs
----

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-15  5:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3751.1118182395.25862.help-gnu-emacs@gnu.org>
2005-06-07 23:00 ` Separating // and /**/ comment fontification Stefan Monnier
2005-06-14 19:13   ` Ryan Bowman
2005-06-14 20:10     ` Ryan Bowman
     [not found] <mailman.1.1118779995.2857.help-gnu-emacs@gnu.org>
2005-06-15  5:30 ` Stefan Monnier
2005-06-07 22:09 Ryan Bowman

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).