[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff-mode
From: |
Andrea Crotti |
Subject: |
diff-mode |
Date: |
Sun, 12 Dec 2010 12:44:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) |
The other day I was preparing a talk with a collegue on revision
control, and we've also show how to use basic diff and patch.
Even if most of the work was done in emacs, we used vim to show the diff
file, since it's much more colorful.
Anyway after I solved customizing some faces
'(diff-added ((t (:inherit diff-changed :background "black" :foreground
"Yellow"))))
'(diff-changed ((nil (:foreground "medium purple"))))
'(diff-header ((((class color) (min-colors 88) (background dark)) (:background
"grey22" :foreground "red" :height 1.2))))
'(diff-indicator-removed ((t (:inherit diff-removed))))
'(diff-removed ((t (:background "black" :foreground "indian red"))))
Now it's even too much contrast :D
But then I thought, wouldn't it be possible to show the normal syntax
highlighting of the given mode and use some background/font style to
differentiate what's to add/remove?
I think even if it's a diff code would look more clear and nice if it's
in the "right" colors...
- diff-mode,
Andrea Crotti <=
- RE: diff-mode, Drew Adams, 2010/12/12
- Re: diff-mode, Andrea Crotti, 2010/12/12
- RE: diff-mode, Drew Adams, 2010/12/12
- Re: diff-mode, Andrea Crotti, 2010/12/13
- RE: diff-mode, Drew Adams, 2010/12/13
- Re: diff-mode, Eli Zaretskii, 2010/12/14
- Re: diff-mode, Andrea Crotti, 2010/12/14
- Re: diff-mode, Eli Zaretskii, 2010/12/14
- Message not available
- Re: diff-mode, Mario Lassnig, 2010/12/15
- Re: diff-mode, Leo, 2010/12/15