From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to font-lock diffs? Date: Wed, 22 Aug 2018 08:52:07 -0400 Message-ID: <87zhxek1hk.fsf@alphaville.usersys.redhat.com> References: <87muteg4xm.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsSk3-00008k-Fu for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 09:00:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsScU-0000iL-DF for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 08:52:22 -0400 Received: from [195.159.176.226] (port=38483 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fsScU-0000gg-62 for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 08:52:18 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fsSaJ-0005lG-EZ for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 14:50:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Marcin Borkowski writes: > Hi all, > > I hoped this: > > #+begin_src diff > @@ -1,5 +1,5 @@ > -lorem > +Lorem > ipsum > dolor > sit > -amet > +amet. > #+end_src > > would Just Work™, i.e., the diff would be font-locked like in > diff-mode. Well, it is not. How do I convince Org-mode to color my > diffs? > By somehow elimintating the indentation perhaps? -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler