all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ryan Bowman <ryanlbowman@yahoo.com>
Subject: Separating // and /**/ comment fontification
Date: Tue, 7 Jun 2005 15:09:08 -0700 (PDT)	[thread overview]
Message-ID: <20050607220909.6705.qmail@web51902.mail.yahoo.com> (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 

             reply	other threads:[~2005-06-07 22:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07 22:09 Ryan Bowman [this message]
     [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

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=20050607220909.6705.qmail@web51902.mail.yahoo.com \
    --to=ryanlbowman@yahoo.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.
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.