diff --git a/lisp/_prepare.el b/lisp/_prepare.el index 4bac1051..0d094b6f 100644 --- a/lisp/_prepare.el +++ b/lisp/_prepare.el @@ -1078,6 +1078,8 @@ This uses function `locate-dominating-file' to look up directory tree." (custom-file (locate-user-emacs-file "custom.el"))) ,@body)) +;; NOTE: If you modified this function, make sure you modified `core/emacs.el' +;; file as well! (defun eask--load-config () "Load configuration if valid." (let ((inhibit-config (eask-quick-p))) diff --git a/lisp/core/emacs.el b/lisp/core/emacs.el index 0faed103..d2d12a3a 100644 --- a/lisp/core/emacs.el +++ b/lisp/core/emacs.el @@ -26,6 +26,8 @@ (setq user-emacs-directory (expand-file-name (concat ".eask/" emacs-version "/")) package-user-dir (expand-file-name "elpa" user-emacs-directory) + early-init-file (locate-user-emacs-file "early-init.el") + eask-dot-emacs-file (locate-user-emacs-file ".emacs") user-init-file (locate-user-emacs-file "init.el") custom-file (locate-user-emacs-file "custom.el")) @@ -33,4 +35,13 @@ (ignore-errors (make-directory package-user-dir t)) (eask--silent (eask-setup-paths)) +;; NOTE: If you modified this execution, make sure you modified the function +;; `eask--load-config' as well! +(let ((inhibit-config (eask-quick-p))) + (unless inhibit-config + (when (version<= "27" emacs-version) + (load early-init-file t t)) + (load eask-dot-emacs-file t t) + (load user-init-file t t))) + ;;; core/emacs.el ends here