+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.
This commit is contained in:
@@ -51,7 +51,10 @@
|
|||||||
;; Killing Emacs hook
|
;; Killing Emacs hook
|
||||||
(add-hook
|
(add-hook
|
||||||
'kill-emacs-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
|
;; When no output files exist, compile
|
||||||
(unless (+literate/org-files-exist)
|
(unless (+literate/org-files-exist)
|
||||||
@@ -62,7 +65,6 @@
|
|||||||
(when (daemonp)
|
(when (daemonp)
|
||||||
(require 'general)
|
(require 'general)
|
||||||
(require 'evil)
|
(require 'evil)
|
||||||
(require 'ivy)
|
|
||||||
(require 'notmuch)
|
(require 'notmuch)
|
||||||
(require 'company)
|
(require 'company)
|
||||||
(require 'org)
|
(require 'org)
|
||||||
|
|||||||
Reference in New Issue
Block a user