From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pierre Bogossian" Newsgroups: gmane.emacs.help Subject: Help me fix my .emacs for 24.3 Date: Wed, 20 Mar 2013 10:00:48 -0400 Message-ID: <20130320140049.151820@gmx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="========GMXBoundary151821363788049667431" X-Trace: ger.gmane.org 1363798388 24812 80.91.229.3 (20 Mar 2013 16:53:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 16:53:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 20 17:53:34 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIMGZ-0004Ts-K4 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 17:53:31 +0100 Original-Received: from localhost ([::1]:43101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIMGC-0000oe-FG for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 12:53:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIJZd-0004A3-Sl for help-gnu-emacs@gnu.org; Wed, 20 Mar 2013 10:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIJZZ-00068B-Hv for help-gnu-emacs@gnu.org; Wed, 20 Mar 2013 10:01:01 -0400 Original-Received: from mout.gmx.net ([74.208.4.200]:59866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIJZZ-00067W-Aw for help-gnu-emacs@gnu.org; Wed, 20 Mar 2013 10:00:57 -0400 Original-Received: from mailout-us.gmx.com ([172.19.198.47]) by mrigmx.server.lan (mrigmxus001) with ESMTP (Nemesis) id 0MaIt2-1TySL61OGG-00Jqtd for ; Wed, 20 Mar 2013 15:00:52 +0100 Original-Received: (qmail 31201 invoked by uid 0); 20 Mar 2013 14:00:52 -0000 Original-Received: from 81.255.98.253 by rms-us024 with HTTP X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 X-GMX-UID: RqQ7cSpa3zOlOGh0N3AhWWx+IGRvbwA4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.200 X-Mailman-Approved-At: Wed, 20 Mar 2013 12:52:45 -0400 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:89612 Archived-At: --========GMXBoundary151821363788049667431 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi guys, you'll find below the code I have in my .emacs file to set up custom colors. It doesn't seem to work anymore since I've upgraded to emacs 24.3.1 (Windows build). The colors I now see are not the ones I want, I guess the default colors are used (for example, strings appear in a kind of dark purple while I want dark green). Could anyone tell me what to do to fix my .emacs ? Pierre (cond ((fboundp 'global-font-lock-mode) ;; Customize face attributes (setq font-lock-face-attributes (list '(font-lock-comment-face "Brown") '(font-lock-string-face "DarkGreen") '(font-lock-keyword-face "Blue") '(font-lock-builtin-face "DarkOrange2") '(font-lock-function-name-face "Purple2") (list 'font-lock-variable-name-face (cdr (assoc 'foreground-color (frame-parameters)))) '(font-lock-type-face "Red2") '(font-lock-constant-face "DarkBlue") '(font-lock-warning-face "OrangeRed") )) ;; Load the font-lock package (require 'font-lock) ;; Maximum colors (setq font-lock-maximum-decoration t) ;; Turn on font-lock in all modes that support it (global-font-lock-mode t) )) --========GMXBoundary151821363788049667431 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi guys,=

you'll find below the code I have in my .emacs file to set up c= ustom colors.
It doesn't seem to work anymore since I've upgraded to e= macs 24.3.1 (Windows build).
The colors I now see are not the ones I w= ant, I guess the default colors are used (for example, strings appear in a = kind of dark purple while I want dark green).
Could anyone tell me wha= t to do to fix my .emacs ?

Pierre


(cond ((fboun= dp 'global-font-lock-mode)
      ;; Customize= face attributes
      (setq font-lock-face-a= ttributes
          =   (list
         &nb= sp;    '(font-lock-comment-face     = ;  "Brown")
         = ;     '(font-lock-string-face    &n= bsp;   "DarkGreen")
      &nbs= p;       '(font-lock-keyword-face  =      "Blue")
      &= nbsp;       '(font-lock-builtin-face &nb= sp;     "DarkOrange2")
    &nb= sp;         '(font-lock-function-na= me-face "Purple2")
        &nb= sp;     (list 'font-lock-variable-name-face (cdr (assoc= 'foreground-color (frame-parameters))))
     = ;         '(font-lock-type-face&nbs= p;         "Red2")
  = ;            '(font-= lock-constant-face      "DarkBlue")
 &nb= sp;            '(fon= t-lock-warning-face       "OrangeRed")
&= nbsp;           &nbs= p; ))
      ;; Load the font-lock package
      (require 'font-lock)
  &nbs= p;   ;; Maximum colors
      (setq = font-lock-maximum-decoration t)
      ;; Turn= on font-lock in all modes that support it
    &nb= sp; (global-font-lock-mode t)
))
--========GMXBoundary151821363788049667431--