From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: diff-mode Date: Sun, 12 Dec 2010 12:44:12 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1292154807 7635 80.91.229.12 (12 Dec 2010 11:53:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Dec 2010 11:53:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 12 12:53:23 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRkUU-0002FI-ND for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Dec 2010 12:53:22 +0100 Original-Received: from localhost ([127.0.0.1]:41381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRkUU-0006U9-8x for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Dec 2010 06:53:22 -0500 Original-Received: from [140.186.70.92] (port=36413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRkU8-0006Ty-5k for help-gnu-emacs@gnu.org; Sun, 12 Dec 2010 06:53:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRkU7-0006vH-0D for help-gnu-emacs@gnu.org; Sun, 12 Dec 2010 06:52:59 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:50482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRkU6-0006ui-Qt for help-gnu-emacs@gnu.org; Sun, 12 Dec 2010 06:52:58 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PRkU4-00024d-BN for help-gnu-emacs@gnu.org; Sun, 12 Dec 2010 12:52:56 +0100 Original-Received: from ip1-201.halifax.rwth-aachen.de ([137.226.108.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Dec 2010 12:52:56 +0100 Original-Received: from andrea.crotti.0 by ip1-201.halifax.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Dec 2010 12:52:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip1-201.halifax.rwth-aachen.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:c8gurYwQa5sUlpcJKM+fkf+wAL0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77434 Archived-At: 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...