help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help me fix my .emacs for 24.3


From: Pierre Bogossian
Subject: Help me fix my .emacs for 24.3
Date: Wed, 20 Mar 2013 10:00:48 -0400

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)
))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]