From de4848dda574ed06a52f39782510d6806ca0ef9c Mon Sep 17 00:00:00 2001 From: rh17s15 Date: Tue, 17 Mar 2026 17:29:20 +0100 Subject: [PATCH] added searching for custom.el in directory of user-init-file --- init.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index d79242a..57531bc 100644 --- a/init.el +++ b/init.el @@ -6,8 +6,12 @@ (global-display-line-numbers-mode) (setq display-line-numbers 'relative) -(setq custom-file "~/.emacs.d/custom.el") -(load custom-file) +;; (message (mapconcat 'identity (list "b" "asdf") "/")) + +(message (replace-regexp-in-string "/[^/]+$" "/custom.el" user-init-file)) + +;; (setq custom-file "~/.emacs.d/custom.el") +;; (load custom-file) ;; initially wanted to load theme through custom, i think below is cleaner though (use-package dracula-theme :ensure t :config (load-theme 'dracula t))