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 21:06:24 +0530 Message-ID: References: <878vkkqone.fsf@nzebook.haselwarter.org> <87mx90p3tq.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 1328283404 782 80.91.229.3 (3 Feb 2012 15:36:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 15:36:44 +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 16:36:42 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 1RtLBp-00064u-S6 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 16:36:42 +0100 Original-Received: from localhost ([::1]:57738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtLBo-0005qj-TX for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 10:36:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtLBd-0005pP-Jr for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 10:36:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtLBZ-0002RU-KQ for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 10:36:29 -0500 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:62828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtLBZ-0002RN-AY for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 10:36:25 -0500 Original-Received: by wibhj13 with SMTP id hj13so3837631wib.0 for ; Fri, 03 Feb 2012 07:36:24 -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=yJubt8D9JHT8ZIda4/NuNb4ARGOnN9cSu/Zz8cK8BFE=; b=eN4g1dIi368NnXt6hsjN6T+MrnOorpdBUUAQLwX49/fNKpNSkyZRl/YdW9MJek4JKR 0FKowEJZgaQY6lgnk3gEOPDxILHUMrnvK26SZliXBy1gjGoGpx57vCVRmJM27WEtIOjU x7dtnmVgDq1nL0hconfFathya65OzDhS4v2Y0= Original-Received: by 10.180.103.132 with SMTP id fw4mr15758538wib.3.1328283384503; Fri, 03 Feb 2012 07:36:24 -0800 (PST) Original-Received: by 10.223.103.73 with HTTP; Fri, 3 Feb 2012 07:36:24 -0800 (PST) In-Reply-To: <87mx90p3tq.fsf@nzebook.haselwarter.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.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:83623 Archived-At: On Fri, Feb 3, 2012 at 4:43 PM, Philipp Haselwarter wrote: > my bad, got confused with my mail accounts. > > > On Fri, Feb 03 2012 09:58 (@1328259509), Philipp Haselwarter wrote: > >> two solutions come to my mind: >> >> 1) set the face attributes outside of customize, that way they won't be >> =A0 =A0affected 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 =A0your .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 > > Clarification: Do one /or/ the other :) If you choose option two, make > sure to create the file you set as `custom-file' (C-h v custom-file RET) > and move all the custom-* stuff from your .emacs into that file. Also, > use an absolute path-name. If things don't work as expected, remove the > 'noerror and start emacs as "emacs --debug-init". > > -- > Philipp Haselwarter > > Oh! got it now. Your explanantion also helped me refactor my .emacs file :) Thank you for all the help. --=20 Vineet Naik