[gnu.emacs.help] Avoiding killing Emacs accidentally

worley@compass.com (Dale Worley) (02/13/91)

You could use:

(setq kill-emacs-hook
      (function (lambda ()
		  (if (not (yes-or-no-p "Do you really want to kill Emacs? "))
		      (error "Not killed.")))))

Dale Worley		Compass, Inc.			worley@compass.com
--
A friend told me about how the software project he was working on got
cancelled: "The business was estimated at $100 million within 4 years,
but this being an American company, that wasn't good enough -- a year
is as far as time goes."