unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Vineet Naik <naikvin@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Correct way of overriding custom-set-faces after the color-theme is loaded
Date: Fri, 3 Feb 2012 13:18:31 +0530	[thread overview]
Message-ID: <CADmbCiPCUP5UTvxiVLpt94Y5LtneUi6Mzu6SBwZn8==AuD0C6Q@mail.gmail.com> (raw)

Hello,

I use the Solarized Dark theme on emacs 23. This theme defines
background color as orange for flymake error line. I wanted to change
this to DarkRed. So in my .emacs file, I added the following lines
after requiring the color theme

;; flymake error and warning faces
(custom-set-faces
 '(flymake-errline ((t (:background "DarkRed"))))
 '(flymake-warnline ((((class color)) (:background "DarkBlue")))))

This was working as expected. Today I set some customization options
using M-x customize-group and saved them due to which, emacs moved the
above lines to the top of the .emacs file resulting in the default
solalized faces to be applied to flymake error.

It also added the following comment under custom-set-faces which is
self explanatory

 ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.

I need to know what would be the correct way to manage my
customizations for the solarized theme without editing the definitions
in the theme itself and make sure they are not overwritten by
customize-*

Thanks
--
Vineet Naik



             reply	other threads:[~2012-02-03  7:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03  7:48 Vineet Naik [this message]
2012-02-03  8:58 ` Correct way of overriding custom-set-faces after the color-theme is loaded Philipp Haselwarter
2012-02-03 10:11   ` Vineet Naik
2012-02-03 11:04     ` Vineet Naik
2012-02-03 11:13     ` Philipp Haselwarter
2012-02-03 15:36       ` Vineet Naik

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='CADmbCiPCUP5UTvxiVLpt94Y5LtneUi6Mzu6SBwZn8==AuD0C6Q@mail.gmail.com' \
    --to=naikvin@gmail.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).