Use different colors for added and removed lines in diff mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 01 Oct 2011 21:05:31 +0300
changeset 714 29d5bc4953c6
parent 713 e321e3b0c550
child 715 973cc8f1023a
Use different colors for added and removed lines in diff mode.
.emacs-my
--- a/.emacs-my	Fri Sep 30 18:24:32 2011 +0300
+++ b/.emacs-my	Sat Oct 01 21:05:31 2011 +0300
@@ -1282,6 +1282,13 @@
 (setq ediff-diff-options "")
 (setq ediff-custom-diff-options "-u")
 
+(when window-system
+  (eval-after-load 'diff-mode
+    '(progn
+       (set-face-foreground 'diff-added-face "DarkGreen")
+       (set-face-foreground 'diff-removed-face "DarkRed")
+  )))
+
 ;;; ----------------------------------------------------------------
 (message "indenting")