diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-06-08 11:00:00 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-06-08 11:00:00 -0700 |
| commit | 2fb1c9cc4b770f2345ebe06b04eb60241f5bd8c1 (patch) | |
| tree | df19dd18dd3f9e51553a8da25ae3617801ad8bc1 /nix/users/fcuny/emacs.nix | |
| parent | flake.lock: Update (diff) | |
| download | infra-2fb1c9cc4b770f2345ebe06b04eb60241f5bd8c1.tar.gz | |
structure emacs configuration
Diffstat (limited to '')
| -rw-r--r-- | nix/users/fcuny/emacs.nix | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/nix/users/fcuny/emacs.nix b/nix/users/fcuny/emacs.nix index cc3dc3a..849c6b4 100644 --- a/nix/users/fcuny/emacs.nix +++ b/nix/users/fcuny/emacs.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let packages = epkgs: with epkgs; [ @@ -36,10 +36,23 @@ let yasnippet yasnippet-capf ]; + emacsFiles = [ + "early-init.el" + "init.el" + "site-lisp/init-base.el" + "site-lisp/init-completion.el" + "site-lisp/init-llm.el" + "site-lisp/init-programming.el" + "site-lisp/init-ui.el" + ]; + mkEmacsFile = file: { + ".config/emacs/${file}" = { + source = ./configs/emacs/${file}; + }; + }; in { - home.file.".config/emacs/early-init.el".source = ./configs/emacs/early-init.el; - home.file.".config/emacs/init.el".source = ./configs/emacs/init.el; + home.file = lib.mkMerge (map mkEmacsFile emacsFiles); programs.emacs = { enable = true; |
