From 8debeb262f98c7d65c4c129afa6229579b5d5d3c Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 18 Aug 2020 00:42:59 +0100 Subject: +y-or-n question to stop kill-emacs, -require ivy from daemon Added a little cute y-or-n question to allow myself a dialogue from stopping Emacs before exiting. Remove ivy from the greedy load list. --- Emacs/.config/emacs/init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el index 250afed..eda4a5b 100644 --- a/Emacs/.config/emacs/init.el +++ b/Emacs/.config/emacs/init.el @@ -51,7 +51,10 @@ ;; Killing Emacs hook (add-hook 'kill-emacs-hook - #'+literate/compile-config) + #'(lambda () + (unless (y-or-n-p "Really exit emacs?: ") + (keyboard-quit)) + (+literate/compile-config))) ;; When no output files exist, compile (unless (+literate/org-files-exist) @@ -62,7 +65,6 @@ (when (daemonp) (require 'general) (require 'evil) - (require 'ivy) (require 'notmuch) (require 'company) (require 'org) -- cgit v1.2.3-13-gbd6f