Emacs 29 Edition is out now!


How to mark a buffer as "not modified"

How to mark a buffer as "not modified"
There are no comments. Why not write one?

You can tell Emacs to set a buffer as not modified (even though it may well be) by pressing M-~, also bound to M-x not-modified. This will obviously suppress any save prompts for that file – at least until you do something that makes it become modified again – so do be careful.

Further Reading

Have you read my Reading Guide yet? It's a curated guide to most of my articles, and I guarantee you'll learn something whether you're a beginner or an expert. And why not check out my book?

Subscribe to the Mastering Emacs newsletter

I write infrequently, so go on — sign up and receive an e-mail when I write new articles

There are no comments. Why not write one?

Copyright 2010-24 Mickey Petersen. Terms & Privacy Policy (Last updated 2022-05-24.)