unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <gerald.jean@dgag.ca>, <help-gnu-emacs@gnu.org>
Subject: RE: Font-lock-faces in Emacs 23.2
Date: Thu, 16 Dec 2010 08:16:52 -0800	[thread overview]
Message-ID: <3E65AA26F2AB42C594FCD8E8F76A2BAE@us.oracle.com> (raw)
In-Reply-To: <OF890984DA.88F60A7A-ON852577FB.004C8B99-852577FB.004E27CB@dgag.ca>

> 1.- M-x customize-group <enter>
> 2.- font-lock-faces <enter>
> 3.- Then move down to the "Font Lock Type Face"...
> 4.- Then change the Foreground entry... to OrangeRed...
> 5.- ...click the <Set for current session> button
>     and the <Save for future sessions button>, reply <yes>...

No need do `Set', since you're doing `Save' (but it doesn't hurt).

> 6.- Exit customize 
...
> Customize has written the following code to my <.emac> file, 
> and this is the last statement in my <.emacs> file:
> 
> (custom-set-faces...
>  '(dired-header ((t (:inherit default :foreground "OrangeRed"))))
>  '(font-lock-type-face ((t (:foreground "OrangeRed"))))...

Does your .emacs get loaded that far, so that the `customize-set-faces' actually
gets eval'd?  E.g., does the `dired-header' face show up OK?

Font lock is sometimes a bit special. What happens if you customize a different
font-lock face, e.g. `font-lock-doc-face'?  Does that work (for subsequent
sessions)?

Are you sure that the face wasn't in fact customized for future sessions, but
that perhaps font-lock-mode wasn't turned on?  Which color is indicated as the
foreground setting after you start up the second time, if you do `customize-face
RET font-lock-type-face RET' then?

Try (after backing up your .emacs) using a different .emacs that has only this
in it:

(custom-set-faces
  '(font-lock-type-face ((t (:foreground "OrangeRed")))))

If that works, then try commenting out half of your original .emacs (leaving the
`custom-set-faces'), then comment-out 3/4, 7/8, 15/16,... until you find which
part of your init file is interfering.

In sum, play around a little, varying things, to see what you can discover.




  reply	other threads:[~2010-12-16 16:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 14:13 Font-lock-faces in Emacs 23.2 gerald.jean
2010-12-16 16:16 ` Drew Adams [this message]
2010-12-16 21:17   ` gerald.jean
2010-12-16 21:47     ` Drew Adams

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=3E65AA26F2AB42C594FCD8E8F76A2BAE@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=gerald.jean@dgag.ca \
    --cc=help-gnu-emacs@gnu.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).