From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vineet Naik Newsgroups: gmane.emacs.help Subject: Re: Correct way of overriding custom-set-faces after the color-theme is loaded Date: Fri, 3 Feb 2012 15:41:17 +0530 Message-ID: References: <878vkkqone.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328263897 14682 80.91.229.3 (3 Feb 2012 10:11:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 10:11:37 +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 11:11:35 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 1RtG7B-00071J-Fc for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 11:11:33 +0100 Original-Received: from localhost ([::1]:44034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtG7A-0000uf-SO for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 05:11:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtG71-0000rr-2I for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:11:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtG6w-000379-Lp for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:11:23 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:56671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtG6w-000370-7G for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 05:11:18 -0500 Original-Received: by eaag11 with SMTP id g11so1358991eaa.0 for ; Fri, 03 Feb 2012 02:11:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Aqhuz+dVoz+O9yEffx4WCudKVeWb7GDU466GLfAq76Q=; b=LDRDaoDVLoyLwq+96RVtuHVysz2vE+fwM1iotuPoGko2K14xXt2s3zg3lAkLX4PNsC edLXF8/sHfeNhigpFVu20uKdIQpNbXEovccK07upMVU0nl3DtGlucMWmGrzIyjF3TshC nDET46/8Op7yHsx5wSELT2wMriQi0uXRuyFX8= Original-Received: by 10.213.9.76 with SMTP id k12mr2355491ebk.40.1328263877237; Fri, 03 Feb 2012 02:11:17 -0800 (PST) Original-Received: by 10.213.19.69 with HTTP; Fri, 3 Feb 2012 02:11:17 -0800 (PST) In-Reply-To: <878vkkqone.fsf@nzebook.haselwarter.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 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:83613 Archived-At: @Philipp - Oops, I replied back to you directly instead of the list. Sorry for that. I couldn't find your reply on the list besides the first one. I checked here - http://lists.gnu.org/archive/html/help-gnu-emacs/2012-02/thr= eads.html is there a different emacs.help list ? Thanks On Fri, Feb 3, 2012 at 2:28 PM, Philipp Haselwarter wrote: > two solutions come to my mind: > > 1) set the face attributes outside of customize, that way they won't be > =A0 affected by customize. > #+begin_src elisp > =A0(set-face-background 'flymake-errline "DarkRed") > #+end_src > > 2) put custom stuff into a separate file and load that at some point of > =A0 your .emacs > #+begin_src elisp > =A0(load > =A0(setq custom-file > =A0 =A0 =A0 =A0(expand-file-name "custom.el" user-emacs-directory)) > =A0'noerror) > #+end_src > > -- > Philipp Haselwarter > > --=20 Vineet Naik