From 377bcdbbe6b7d578a4da750ae3c31b5971e4872a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 2 Dec 2023 11:23:54 -0500 Subject: [PATCH] tweak: emit feedback when started in daemon mode --- lisp/doom.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lisp/doom.el b/lisp/doom.el index 2d59d5ffa..42465738d 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -697,6 +697,16 @@ appropriately against `noninteractive' or the `cli' context." ;; ;;; Last minute initialization +(when (daemonp) + (message "Starting Doom Emacs in daemon mode!") + (unless doom-inhibit-log + (add-hook! 'doom-after-init-hook :depth 106 + (unless doom-inhibit-log + (setq doom-inhibit-log (not (or noninteractive init-file-debug)))) + (message "Disabling verbose mode. Have fun!")) + (add-hook! 'kill-emacs-hook :depth 110 + (message "Killing Emacs. Sayonara!")))) + (add-hook! 'doom-before-init-hook :depth -105 (defun doom--begin-init-h () "Begin the startup process."