unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: different font-lock faces for different modes
Date: Mon, 18 Jul 2005 09:44:58 -0600	[thread overview]
Message-ID: <dbgips$l6b$1@sea.gmane.org> (raw)
In-Reply-To: <E1Du0CB-0000iU-00@lab50.ma.utexas.edu>

Joe Corneli wrote:
 >  (add-hook 'lisp-mode-hook
 >            (lambda () (make-local-variable font-lock-comment-face)
 >                       (setq font-lock-comment-face ugly-face)))

That can be simplified just a bit:

(add-hook 'lisp-mode-hook
           (lambda ()
             (set (make-local-variable font-lock-comment-face) ugly-face)))

-- 
Kevin Rodgers

  reply	other threads:[~2005-07-18 15:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-17  3:30 different font-lock faces for different modes Christopher C. Stacy
2005-07-17  3:52 ` Joe Corneli
2005-07-18 15:44   ` Kevin Rodgers [this message]
     [not found]   ` <mailman.902.1121701980.20277.help-gnu-emacs@gnu.org>
2005-07-19 15:16     ` 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='dbgips$l6b$1@sea.gmane.org' \
    --to=ihs_4664@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.
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).