Add function to load Emacs config files
This commit is contained in:
parent
357d772272
commit
06b9d038f8
|
@ -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 = {
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user