[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to font-lock diffs?
From: |
Marcin Borkowski |
Subject: |
Re: [O] How to font-lock diffs? |
Date: |
Thu, 23 Aug 2018 21:03:36 +0200 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2018-08-22, at 14:52, Nick Dokos <address@hidden> wrote:
> Marcin Borkowski <address@hidden> 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?
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,
--
Marcin Borkowski
http://mbork.pl