Changing the diff-mode colors in Emacs
Just add these lines to your .emacs files (or .emacs.d/init.el)
;; Customizing colors used in diff mode
(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))
(my full emacs config can be found at github: https://github.com/clarete/dotfiles/tree/master/.emacs.d)
Written by Lincoln de Sousa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Diff
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#