From 8ba87d7cfdf84a595223224e54d62294cfe2d1cd Mon Sep 17 00:00:00 2001 From: 10sr Date: Sat, 5 Nov 2011 20:39:56 +0900 Subject: [PATCH] add preferences around diff command --- .emacs.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.emacs.el b/.emacs.el index 8e11910..a65d2e1 100644 --- a/.emacs.el +++ b/.emacs.el @@ -595,6 +595,20 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; mode関連 +(setq diff-switches "-u") +(add-hook 'diff-mode-hook + (lambda () + (view-mode 1) + ;; (set-face-foreground 'diff-file-header-face "black") + (set-face-foreground 'diff-index-face "blue") + (set-face-foreground 'diff-hunk-header-face "magenda") + (set-face-foreground 'diff-removed-face "red") + ;; (set-face-background 'diff-removed-face "gray26") + (set-face-foreground 'diff-added-face "blue") + ;; (set-face-background 'diff-added-face "gray26") + (set-face-foreground 'diff-changed-face "syan") + )) + ;; (ffap-bindings) (add-hook 'sh-mode-hook