added searching for custom.el in directory of user-init-file

This commit is contained in:
2026-03-17 17:29:20 +01:00
parent c11d19ec54
commit de4848dda5

View File

@@ -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))