diff --git a/init.el b/init.el index 0ecbe59..106d787 100644 --- a/init.el +++ b/init.el @@ -276,6 +276,13 @@ (unless (server-running-p) (server-start)) + ;; Load custom code + + (dolist (file db/after-init-load-files) + (message "Loading %s" file) + (with-demoted-errors "Error loading file: %s" + (load-file file))) + ;; Finish (message "Running main initialization ... done") @@ -299,6 +306,11 @@ :group 'personal-settings :type 'string) +(defcustom db/after-init-load-files nil + "A list of files to be loaded by `db/run-init' as the last step." + :group 'personal-settings + :type '(repeat file)) + ;; * General configuration