From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Haselwarter Newsgroups: gmane.emacs.help Subject: Re: Correct way of overriding custom-set-faces after the color-theme is loaded Date: Fri, 03 Feb 2012 09:58:29 +0100 Message-ID: <878vkkqone.fsf@nzebook.haselwarter.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328259540 15865 80.91.229.3 (3 Feb 2012 08:59:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 08:59:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 09:58:58 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtEyv-0007g2-0z for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 09:58:57 +0100 Original-Received: from localhost ([::1]:53314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtEyu-0003nH-Ff for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 03:58:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtEyl-0003n5-7L for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 03:58:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtEyk-0004sC-HU for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 03:58:47 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtEyk-0004rg-CN for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 03:58:46 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RtEyh-0007YA-33 for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 09:58:43 +0100 Original-Received: from 141.67.113.78.rev.sfr.net ([78.113.67.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Feb 2012 09:58:43 +0100 Original-Received: from philipp.haselwarter by 141.67.113.78.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Feb 2012 09:58:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 141.67.113.78.rev.sfr.net X-NSA-Fodder: Telex Rumsfeld Comirex broadside InfoSec Syria SSL ammunition X-Drdoom-Fodder: drdoom crypt satan root crash User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:Kt+1/iVO3U14PUEDVhtW+myMvOI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83608 Archived-At: two solutions come to my mind: 1) set the face attributes outside of customize, that way they won't be affected by customize. #+begin_src elisp (set-face-background 'flymake-errline "DarkRed") #+end_src 2) put custom stuff into a separate file and load that at some point of your .emacs #+begin_src elisp (load (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) 'noerror) #+end_src -- Philipp Haselwarter