Is it possible to undo everything in an emacs buffer in just one step? I can do it step by step using C-x u but how can I do all steps just with one command?


To undo back to the last time you saved the buffer, run M-x revert-buffer RET yes RET.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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