unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ken Goldman <kgoldman@us.ibm.com>
To: help-gnu-emacs@gnu.org
Subject: font-lock-face-attributes not changing
Date: Thu, 30 Apr 2015 09:17:02 -0400	[thread overview]
Message-ID: <mhta0e$e3b$1@ger.gmane.org> (raw)

I have a common .emacs file that I use across Linux and Windows 
platforms.  One one (24.3.1, a bit newer than the others) , 
font-lock-face-attributes has no effect.  I get the default colors.

When I start .emacs, I don't see any warnings, and messages says the 
.emacs is being read.  What else should I look for?

The other hint is that it claims this is an invalid face, but it works 
on several other Linux platforms.

(set-face-foreground 'modeline	   "navy")
(set-face-background 'modeline	   "lightblue1")

The relevant line is:

(setq font-lock-face-attributes
       ;; FACE			      FG		 BG	 bold italic underline
       '((font-lock-comment-face	      "gold"		 nil	 nil  nil	  nil)
	(font-lock-string-face	      "lightskyblue2"	 nil	 nil  nil	  nil)
	(font-lock-reference-face     "palegreen2"	 nil	 nil  nil	  nil)
	(font-lock-constant-face      "palegreen2"	 nil	 nil  nil	  nil)
	(font-lock-variable-name-face "wheat"		 nil	 nil  nil	  nil)
	(font-lock-function-name-face "yellow"		 nil	 nil  nil	    1)
	(font-lock-type-name-face     "salmon"		 nil	 nil  nil	  nil)
	(font-lock-doc-name-face      "magenta"		 nil	 nil  nil	  nil)
	(font-lock-keyword-face	      "pink"		 nil	 nil  nil	  nil)
	(font-lock-type-face	      "lightsalmon"	 nil	 nil  nil	  nil)
	(font-lock-builtin-face	      "palegreen2"	 nil	 nil  nil	  nil)
	(font-lock-warning-face	      "red"		 nil	 nil  nil	  nil)
	(font-lock-fatal-face	      "black"            "red"   nil  nil 
  nil)
	(show-paren-match-face	      "black"		 "green" nil  nil	  nil)
	(paren-face-match	      "black"		 "green" nil  nil	  nil)
	(flyspell-incorrect-face      "wheat"		 nil	 nil  nil	    1)
	(flyspell-duplicate-face      "wheat"		 nil	 nil  nil	    1)
	))




             reply	other threads:[~2015-04-30 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 13:17 Ken Goldman [this message]
2015-05-01  2:08 ` font-lock-face-attributes not changing John Mastro
     [not found] ` <mailman.2082.1430446147.904.help-gnu-emacs@gnu.org>
2015-05-01  2:21   ` Emanuel Berg
     [not found] <mailman.2013.1430399851.904.help-gnu-emacs@gnu.org>
2015-05-01  1:31 ` Emanuel Berg

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='mhta0e$e3b$1@ger.gmane.org' \
    --to=kgoldman@us.ibm.com \
    --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).