Whenever I try to quit Emacs it will ask me if I want to save any modified buffers. In the case where I answer “no” it will ask me:
Modified buffers exist; exit anyway? (y or n)
Is there any way to prevent Emacs from asking me the last question?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a number of ways you can do this:
You could advise the save-buffers-kill-emacs function:
The downside of doing this is that it will also bypass the check for active processes in Emacs (which is done after the file buffer check). So, it is probably safest to write your own version of save-buffers-kill-emacs
and either bind it to the standard C-x C-c key binding:
or fset it to “save-buffers-kill-emacs”: