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

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

Changing highlight in diff mode?


From: georg . lay
Subject: Changing highlight in diff mode?
Date: Thu, 29 Jan 2009 14:12:28 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080421)

Hi, I am trying to change highlighting fpr diff-mode in emacs 21.3.1


Changing faces mentioned in

http://www.gnu.org/software/emacs/elisp/html_node/Faces-for-Font-Lock.html

has no effect, so has changing face stuff mentioned in emacs wiki.

This is part of my .emacs. Nothing takes effect.

(defun my-diff-hook ()
  (cond (window-system (font-lock-mode)))
  (setq special-display-frame-alist
        (cons '(background-color . "LightSteelBlue")
              special-display-frame-alist))

  (custom-set-faces
   '(diff-added ((t (:foreground "DarkGreen"))) 'now)
   '(diff-changed ((t (:foreground "MediumBlue"))) 'now)
   '(diff-context ((t (:foreground "Black"))) 'now)
   '(diff-file-header ((t (:foreground "Red" :background "White"))) 'now)
   '(diff-function ((t (:foreground "Orange"))) 'now)
   '(diff-header ((t (:foreground "Red"))) 'now)
   '(diff-hunk-header ((t (:foreground "White" :background "Salmon"))) 'now)
   '(diff-index ((t (:foreground "Green"))) 'now)
   '(diff-nonexistent ((t (:foreground "DarkBlue"))) 'now)
   '(diff-removed ((t (:foreground "DarkMagenta"))) 'now)
   )

  (set-face-foreground 'font-lock-diff-file-header "PaleGreen3")
  (set-face-foreground 'font-lock-diff-file-header-face "PaleGreen3")
  (set-face-foreground 'diff-file-header-face "PaleGreen3")
  (set-face-foreground 'diff-file-header "PaleGreen3")
  (set-face-foreground 'font-lock-doc-face "PaleGreen3")
  (set-face-foreground 'font-lock-builtin-face "PaleGreen3")
  (set-face-foreground 'font-lock-string-face "burlywood2")
  (set-face-foreground 'font-lock-type-face "CornflowerBlue")
  (set-face-foreground 'font-lock-function-name-face "CornflowerBlue")
  (set-face-foreground 'font-lock-variable-name-face "CornflowerBlue")
)

Working with emcs if fine. But customizing it is severe punishment...

Thanks for any help and tipps

G.Lay







reply via email to

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