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.

How can I turn off the prompt when I try to save the file in Emacs?

I mean every time I do C-xs, emacs always ask "Save file xxx?"

How can I disable this prompt?

share|improve this question

1 Answer 1

up vote 12 down vote accepted

You're looking for the command C-x C-s (keep holding control when you hit the "s"). That doesn't prompt before save.

share|improve this answer
thanks!!!!!!!!! –  portoalet Jun 7 '10 at 3:26
@lydonchandra- C-x s (what you had been using) attempts to save all files and buffers while ivarley's recommendation is just for the current file/buffer. –  Ray Vega Jun 16 '10 at 6:50
@RayVega yeah.. C-u C-x s would save all without prompting –  barlop Sep 3 '13 at 20:01

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.