diff --git a/home-manager/software/emacs/default.nix b/home-manager/software/emacs/default.nix index 1b1492e..ae34718 100644 --- a/home-manager/software/emacs/default.nix +++ b/home-manager/software/emacs/default.nix @@ -101,7 +101,6 @@ ]; }; home.file.".emacs.d/init.el".source = ./emacs.d/init.el; - home.file.".emacs.d/loader.el".source = ./emacs.d/loader.el; home.file.".emacs.d/snippets".source = ./emacs.d/snippets; home.file.".Eshell/alias".source = ./Eshell/alias; services.emacs = { diff --git a/home-manager/software/emacs/emacs.d/init.el b/home-manager/software/emacs/emacs.d/init.el index 12bce38..d0311f6 100644 --- a/home-manager/software/emacs/emacs.d/init.el +++ b/home-manager/software/emacs/emacs.d/init.el @@ -12,4 +12,9 @@ (load custom-file)) (require 'ob-tangle) -(load-file "~/.emacs.d/loader.el") +(defun config-path (config) + (setq emacs-config-dir "~/.nixos/home-manager/software/emacs/emacs.d/") + (concat emacs-config-dir config)) + + +(load-file (config-path "loader.el"))