Skip to content

Commit

Permalink
Add confirmation before closing Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Sep 15, 2024
1 parent ce556ee commit 0b7b0cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ I use some general settings to make Emacs feel better.
(setq ring-bell-function (lambda ()
(invert-face 'mode-line)
(run-with-timer 0.1 nil 'invert-face 'mode-line)))


;; Make me confirm before exiting Emacs
;; I have become a clumsy piece of shit with my age, and sometimes exit Emacs by mistake
(setq confirm-kill-emacs 'yes-or-no-p)
#+END_SRC


Expand Down

0 comments on commit 0b7b0cd

Please sign in to comment.