From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to font-lock diffs? Date: Thu, 23 Aug 2018 21:03:36 +0200 Message-ID: <87ftz4ucqf.fsf@mbork.pl> References: <87muteg4xm.fsf@mbork.pl> <87zhxek1hk.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsuuN-0007V3-T0 for emacs-orgmode@gnu.org; Thu, 23 Aug 2018 15:04:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsuuK-0001N9-Kw for emacs-orgmode@gnu.org; Thu, 23 Aug 2018 15:04:39 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:37414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsuuK-0001L0-E5 for emacs-orgmode@gnu.org; Thu, 23 Aug 2018 15:04:36 -0400 In-reply-to: <87zhxek1hk.fsf@alphaville.usersys.redhat.com> 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: Nick Dokos Cc: emacs-orgmode@gnu.org On 2018-08-22, at 14:52, Nick Dokos wrote: > 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=E2=84=A2, 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? Thanks Nick (and John, in previous message). This works indeed. However, double C-c ' on the source block reintroduces the indentation... Still, I can live with it as-is. Best, --=20 Marcin Borkowski http://mbork.pl