I use mercurial.el mode with Emacs. When I run vc-diff, I can see the diff, but, unlike the source code, it is not nicely highlighted:

Reading such diffs is difficult. How do I configure Emacs,
- to highlight
-and+lines with different colors? (red and blue, for example) - to highlight word difference (like BitBucket and GitHub do)
Try using M-x ediff-revision, which does an
ediffinstead of just a regular diff. That will give you word-differences and a side-by-side (or top/bottom) display. Check out the ediff manual.The Emacs wiki also has a number of modes for just regular diff files (like what you’re looking at) – check it out.
To just change the colors in the
diff-modewhich you’re currently using, you can do something like: