aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-18 00:42:59 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-18 00:42:59 +0100
commit8debeb262f98c7d65c4c129afa6229579b5d5d3c (patch)
tree3319f15a27900fea4036c575ca71cb9715b7a774 /Emacs/.config
parent101f7ac0c4dc9869bf25514321ae10fcda5c62f7 (diff)
downloaddotfiles-8debeb262f98c7d65c4c129afa6229579b5d5d3c.tar.gz
dotfiles-8debeb262f98c7d65c4c129afa6229579b5d5d3c.tar.bz2
dotfiles-8debeb262f98c7d65c4c129afa6229579b5d5d3c.zip
+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.
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/init.el6
1 files changed, 4 insertions, 2 deletions
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)