Suppress kill-emacs-hook in noninteractive Doom

This commit is contained in:
Henrik Lissner 2019-04-24 18:04:17 -04:00
parent cb172becd9
commit eb22177cea
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 4 additions and 2 deletions

View file

@ -78,7 +78,8 @@ following:
(doom|persist-scratch-buffer)))) (doom|persist-scratch-buffer))))
;;;###autoload ;;;###autoload
(add-hook 'kill-emacs-hook #'doom|persist-scratch-buffers) (unless noninteractive
(add-hook 'kill-emacs-hook #'doom|persist-scratch-buffers))
;; ;;

View file

@ -68,7 +68,8 @@ c) are not valid projectile projects."
and do (remhash proot projectile-projects-cache-time) and do (remhash proot projectile-projects-cache-time)
and do (remhash proot projectile-project-type-cache)) and do (remhash proot projectile-project-type-cache))
(projectile-serialize-cache))) (projectile-serialize-cache)))
(add-hook 'kill-emacs-hook #'doom|cleanup-project-cache) (unless noninteractive
(add-hook 'kill-emacs-hook #'doom|cleanup-project-cache))
;; It breaks projectile's project root resolution if HOME is a project (e.g. ;; It breaks projectile's project root resolution if HOME is a project (e.g.
;; it's a git repo). In that case, we disable bottom-up root searching to ;; it's a git repo). In that case, we disable bottom-up root searching to