diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 2a65fec..0e87dc6 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -8,6 +8,15 @@ ;; Change all prompts to y or n (fset 'yes-or-no-p 'y-or-n-p) +;; my prompt +(defun my/yes-or-whatever-p (prompt) + (string= "yes" + (downcase + (read-from-minibuffer + (concat prompt "(yes or whatever) "))))) +;; Ask if you want to quit emacs +(setq confirm-kill-emacs 'my/yes-or-whatever-p) + ;; Nope function (defun nope () (interactive)