From 91427b19d7de60cc6e89dc457c593f7262a7fa43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sun, 27 Oct 2024 17:32:04 -0700 Subject: emacs: support loading code pre-init --- .emacs.d/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 73f4099..8f6aa6a 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -59,6 +59,10 @@ (dolist (path '("~/.emacs.d/rul-lisp/config" "~/.emacs.d/rul-lisp/packages")) (add-to-list 'load-path path)) +(when-let* ((file (locate-user-emacs-file "rul-pre-init.el")) + ((file-exists-p file))) + (load-file file)) + (require 'rul-bindings) (require 'rul-completion) (require 'rul-elfeed) -- cgit v1.2.3