From c055905a79b262e3a6099e77ca91774e99881d1d Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Mon, 7 Jul 2025 16:21:27 +0200 Subject: [PATCH] fix load custom lisp first --- early-init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 00f2d5e9..081ee5b7 100644 --- a/early-init.el +++ b/early-init.el @@ -60,12 +60,12 @@ Fallbacks to `user-emacs-directory' if this file is not loaded.") EXCLUDE-LIST, while for the dirs in INCLUDE-LIST, it will add all the first level dirs of that dir too. Example: (add-to-load-path-with-subdirs \"~/.emacs.d\" '(\".\" \"..\" \"backup\") '(\"vendor\" \"my-lisp\"))" - (add-to-list 'load-path base t) ;; append so shipped packages are loaded first + (add-to-list 'load-path base nil) ;; no append so shipped packages are loaded first (dolist (f (directory-files base)) (let ((name (concat base "/" f))) (when (and (file-directory-p name) (not (member f exclude-list))) - (add-to-list 'load-path name t) ;; append so shipped packages are loaded first + (add-to-list 'load-path name nil) ;; no append so shipped packages are loaded first (when (member f include-list) (add-to-load-path-with-subdirs name exclude-list include-list)))))) (add-to-load-path-with-subdirs (concat config-dir "lisp") '("." ".." "0patches") nil)