unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* diff-mode
@ 2010-12-12 11:44 Andrea Crotti
  2010-12-12 15:09 ` diff-mode Drew Adams
  0 siblings, 1 reply; 39+ messages in thread
From: Andrea Crotti @ 2010-12-12 11:44 UTC (permalink / raw)
  To: help-gnu-emacs

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...




^ permalink raw reply	[flat|nested] 39+ messages in thread
[parent not found: <mailman.3.1292154786.23431.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2010-12-15 16:50 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12 11:44 diff-mode Andrea Crotti
2010-12-12 15:09 ` diff-mode Drew Adams
2010-12-12 17:59   ` diff-mode Andrea Crotti
2010-12-12 18:14     ` diff-mode Drew Adams
2010-12-13 23:22       ` diff-mode Andrea Crotti
2010-12-13 23:35         ` diff-mode Drew Adams
2010-12-14 10:04         ` diff-mode Eli Zaretskii
2010-12-14 10:13           ` diff-mode Leo
2010-12-14 11:07             ` diff-mode Eli Zaretskii
2010-12-14 14:40           ` diff-mode Andrea Crotti
2010-12-14 15:22             ` diff-mode Eli Zaretskii
     [not found]           ` <mailman.4.1292337645.794.help-gnu-emacs@gnu.org>
2010-12-14 14:57             ` diff-mode Mario Lassnig
     [not found]       ` <mailman.2.1292282577.11279.help-gnu-emacs@gnu.org>
2010-12-14  8:43         ` diff-mode Elena
2010-12-14 10:11           ` diff-mode Eli Zaretskii
2010-12-14 10:16           ` diff-mode Leo
     [not found]           ` <mailman.1.1292321505.27999.help-gnu-emacs@gnu.org>
2010-12-14 13:40             ` diff-mode Elena
2010-12-14 14:57               ` diff-mode Andrea Crotti
2010-12-14 15:48                 ` diff-mode Drew Adams
2010-12-14 15:57                   ` diff-mode Andrea Crotti
2010-12-14 16:06                     ` diff-mode Drew Adams
2010-12-14 15:45               ` diff-mode Richard Riley
     [not found]               ` <mailman.5.1292338693.794.help-gnu-emacs@gnu.org>
2010-12-14 15:35                 ` diff-mode Elena
2010-12-14 16:07                   ` diff-mode Eli Zaretskii
2010-12-14 18:20                     ` diff-mode Andrea Crotti
     [not found]                   ` <mailman.7.1292342885.25302.help-gnu-emacs@gnu.org>
2010-12-14 16:22                     ` diff-mode Elena
2010-12-14 18:51                       ` diff-mode Eli Zaretskii
     [not found]                       ` <mailman.5.1292352715.11323.help-gnu-emacs@gnu.org>
2010-12-14 19:48                         ` diff-mode Elena
2010-12-14 15:46                 ` diff-mode Richard Riley
2010-12-15 14:12               ` diff-mode José A. Romero L.
2010-12-15 15:00                 ` diff-mode Elena
2010-12-15 16:28                   ` diff-mode José A. Romero L.
2010-12-15 16:46                   ` diff-mode José A. Romero L.
2010-12-15 16:50                   ` diff-mode José A. Romero L.
     [not found] <mailman.3.1292154786.23431.help-gnu-emacs@gnu.org>
2010-12-12 12:46 ` diff-mode rusi
2010-12-12 18:02   ` diff-mode Andrea Crotti
     [not found]   ` <mailman.4.1292177110.18751.help-gnu-emacs@gnu.org>
2010-12-13  4:52     ` diff-mode rusi
2010-12-12 18:23 ` diff-mode Elena
2010-12-12 18:26   ` diff-mode Elena
2010-12-15  4:47 ` diff-mode Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).