Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

Check out the options listed on the Emacs wiki here:

share|improve this answer
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

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

Your Answer


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.