Consulte o manual do Emacs, nó Saindo . Lá você verá isso:
If the value of the variable
confirm-kill-emacs
is non-nil
,C-x C-c
assumes that its value is a predicate function, and calls that function. If the result of the function call is non-nil
, the session is killed, otherwise Emacs continues to run. One convenient function to use as the value ofconfirm-kill-emacs
is the functionyes-or-no-p
. The default value ofconfirm-kill-emacs
isnil
.To kill Emacs without being prompted about saving, type
M-x kill-emacs
.
E você pode vincular kill-emacs
a qualquer chave (incluindo C-x C-c
).