mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Move server/startup-message/auto-kill-processes init to core.el
This commit is contained in:
14
core/core.el
14
core/core.el
@ -142,5 +142,19 @@
|
||||
(IS-LINUX 'core-os-linux)
|
||||
(IS-WINDOWS 'core-os-win32)))
|
||||
|
||||
;; Set this up at the end to allow errors to prevent it.
|
||||
(add-hook! after-init
|
||||
(defadvice save-buffers-kill-emacs (around no-query-kill-emacs activate)
|
||||
"Prevent annoying \"Active processes exist\" query when you quit Emacs."
|
||||
(cl-flet ((process-list ())) ad-do-it)))
|
||||
|
||||
(defun display-startup-echo-area-message ()
|
||||
(after! workgroups2
|
||||
(message "%sLoaded in %s" (narf/tab-display t t) (emacs-init-time))))
|
||||
|
||||
(require 'server)
|
||||
(unless (server-running-p)
|
||||
(server-start))
|
||||
|
||||
(provide 'core)
|
||||
;;; core.el ends here
|
||||
|
Reference in New Issue
Block a user