From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: How to font-lock diffs? Date: Wed, 22 Aug 2018 08:44:08 -0400 Message-ID: References: <87muteg4xm.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c003950574057f49" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsSkN-0000KM-Tz for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 09:00:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsSUe-0005Jg-NH for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 08:44:13 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fsSUe-0005ID-Ax for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 08:44:12 -0400 Received: by mail-wm0-x236.google.com with SMTP id j192-v6so1726628wmj.1 for ; Wed, 22 Aug 2018 05:44:11 -0700 (PDT) In-Reply-To: <87muteg4xm.fsf@mbork.pl> 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: Marcin Borkowski Cc: Org-Mode mailing list --000000000000c003950574057f49 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This does Just Work=E2=84=A2 for me if I remove the two spaces at the front= of each line. I never use the indentation, so I am not sure what the interplay there is. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Aug 22, 2018 at 4:51 AM, Marcin Borkowski wrote: > 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? > > Best, > > -- > Marcin Borkowski > http://mbork.pl > > --000000000000c003950574057f49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This does=C2=A0Just Work=E2=84=A2 for me if I remove the two spaces at the front of each = line. I never use the indentation, so I am not sure what the interplay ther= e is.

John

-----------------------------------
P= rofessor John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical= Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-2= 68-7803

On Wed, Aug 22, 2018 at 4:51 AM, Marcin Bork= owski <mbork@mbork.pl> wrote:
Hi all,

I hoped this:

#+begin_src diff
=C2=A0 @@ -1,5 +1,5 @@
=C2=A0 -lorem
=C2=A0 +Lorem
=C2=A0 =C2=A0ipsum
=C2=A0 =C2=A0dolor
=C2=A0 =C2=A0sit
=C2=A0 -amet
=C2=A0 +amet.
#+end_src

would Just Work=E2=84=A2, i.e., the diff would be font-locked like in
diff-mode.=C2=A0 Well, it is not.=C2=A0 How do I convince Org-mode to color= my
diffs?

Best,

--
Marcin Borkowski
http://mbo= rk.pl


--000000000000c003950574057f49--