Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've used vi for decades, but I'm trying to improve my emacs skills.

In vi, I often check the status of my buffer by issuing this command:

:w !diff - %

Is there a command in emacs that I can use to remind myself of what changes I have made recently?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Check out the options listed on the Emacs wiki here: http://www.emacswiki.org/emacs/TrackChanges

share|improve this answer
1  
Thanks. That page suggests M-x diff-buffer-with-file, which is exactly what I asked for. Additionally, it lists M-x highlight-changes-mode, which may be what I actually want. –  ΔRob Oct 22 '11 at 17:44
add comment

Undo Tree can do something similar (visualizing buffer versions), butI don't know if it can do diff, though it would be trivial to implement. You may want to suggest this to the author.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.