mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Suppress kill-emacs-hook in noninteractive Doom
This commit is contained in:
@ -78,7 +78,8 @@ following:
|
||||
(doom|persist-scratch-buffer))))
|
||||
|
||||
;;;###autoload
|
||||
(add-hook 'kill-emacs-hook #'doom|persist-scratch-buffers)
|
||||
(unless noninteractive
|
||||
(add-hook 'kill-emacs-hook #'doom|persist-scratch-buffers))
|
||||
|
||||
|
||||
;;
|
||||
|
@ -68,7 +68,8 @@ c) are not valid projectile projects."
|
||||
and do (remhash proot projectile-projects-cache)
|
||||
and do (remhash proot projectile-projects-cache-time)
|
||||
and do (remhash proot projectile-project-type-cache))
|
||||
(projectile-serialize-cache)))
|
||||
(projectile-serialize-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.
|
||||
|
Reference in New Issue
Block a user