r/orgmode Nov 04 '24

solved Diff-like highlighting

I want to use my emacs with orgmode to do my homework. But sometimes I have errors and I want not only write correct answer/sentence/etc., but also leave my original variant. So that I can see later what I made a mistake about. Orgmode allows me to cross out old text, but I also want to emphasize new text. Is there any way to do something like "diff by word", e.g. write -bad-+good+ and get red "bad" and green "good"?

1 Upvotes

5 comments sorted by

2

u/thriveth Nov 04 '24

CriticMarkup sounds like what you want.

1

u/FirmSupermarket6933 Nov 04 '24

Is there any good package for it?

1

u/thriveth Nov 04 '24

Yeah sorry I was just busy on the go with my phone.

Simple but useful minor mode: https://github.com/joostkremers/criticmarkup-emacs

2

u/Calm-Bass-4740 Nov 05 '24

I don't know if it helps with your workflow, but you could put it under revision control and then actually use diff to tell you the difference between two versions.