Add function to load Emacs config files

This commit is contained in:
Andreas Zweili 2022-08-18 20:32:30 +02:00
parent 357d772272
commit 06b9d038f8
2 changed files with 6 additions and 2 deletions

View File

@ -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 = {

View File

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