From cb4d3e6e63d250ce337f8e05864881b6372ebde9 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 19 Nov 2025 16:04:57 +0100 Subject: [PATCH] Emacsg: Use Borg's new init message support --- init.el | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/init.el b/init.el index ee266a7..734aa86 100644 --- a/init.el +++ b/init.el @@ -1,4 +1,5 @@ ;;; init.el --- user-init-file -*- lexical-binding: t -*- +(borg-report-load-duration) ;;; Early birds (progn ; startup (setq inhibit-startup-buffer-menu t) @@ -45,7 +46,7 @@ :config (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (when (file-exists-p custom-file) - (load custom-file))) + (load custom-file nil t))) (use-package server :functions (server-running-p) @@ -53,8 +54,7 @@ (progn ; startup (message "Loading early birds...done (%.3fs)" - (float-time (time-subtract (current-time) - before-user-init-time)))) + (float-time (time-subtract (current-time) before-init-time)))) ;;; Long tail @@ -159,24 +159,10 @@ ;;; Tequila worms -(progn ; startup - (message "Loading %s...done (%.3fs)" user-init-file - (float-time (time-subtract (current-time) - before-user-init-time))) - (add-hook 'after-init-hook - (lambda () - (message - "Loading %s...done (%.3fs) [after-init]" user-init-file - (float-time (time-subtract (current-time) - before-user-init-time)))) - t)) - -(progn ; personalize - (let ((file (expand-file-name (concat (user-real-login-name) ".el") - user-emacs-directory))) - (when (file-exists-p file) - (load file)))) +(borg--load-config (concat (user-real-login-name) ".el")) +(borg-report-after-init-duration) +;;; _ ;; Local Variables: ;; indent-tabs-mode: nil ;; End: