If I do a diff from emacs, I get something that looks like a patch, and the files are concatenated in one big file. Is there any function that I could use to compare them like in this image? It's much easier to see what's changed.
The command M-x diff compares two files, displaying the differences in an Emacs buffer named `*diff*' . It works by running the diff program, using options taken from the variable diff-switches . The value of diff-switches should be a string; the default is "-c" to specify a context diff.
Right-click on the first file. Click on “Select for Compare” from the menu. Proceed to right-click on the second file. Click on “Compare with Selected.
Ediff works similarly: M-x ediff
http://www.gnu.org/software/emacs/manual/html_mono/ediff.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With