From 925f957405a25279b024410588043fb13effd33c Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 7 Aug 2013 18:36:55 -0400 Subject: [PATCH] [emacs] Set diff-mode colors --- .emacs.d/init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9bd970f..75ffa59 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -41,6 +41,17 @@ ;; Fixes an issue with ECB ;; (setq stack-trace-on-error t) +;; Diff colors +(defun custom-diff-colors () + "update the colors for diff faces" + (set-face-attribute + 'diff-added nil :foreground "green") + (set-face-attribute + 'diff-removed nil :foreground "red") + (set-face-attribute + 'diff-changed nil :foreground "purple")) +(eval-after-load "diff-mode" '(custom-diff-colors)) + ;; SLIME (if (file-exists-p "~/quicklisp/slime-helper.el") (load (expand-file-name "~/quicklisp/slime-helper.el")))