nixconfig/emacs/emacs.nix

37 lines
948 B
Nix
Raw Normal View History

2023-11-15 16:09:47 +00:00
{ config, lib, pkgs, ...}:
{
home.file.".emacs.d/early-init.el" = {
2023-12-14 11:30:17 +00:00
enable = true;
2023-12-15 12:41:21 +00:00
text = ''
(setq package-enable-at-startup nil)
(setq package-install-upgrade-built-in t)
'';
2023-11-15 16:09:47 +00:00
};
home.file.".emacs.d/init.el" = {
enable = true;
text = builtins.readFile ./init.el;
};
home.file.".emacs.d/templates" = {
enable = true;
text = builtins.readFile ./templates;
};
2023-12-13 11:46:11 +00:00
home.file.".emacs.d/lib/smartparens-emacs-lisp.el" = {
enable = true;
text = builtins.readFile ./lib/smartparens-emacs-lisp.el;
};
home.file.".emacs.d/lib/smartparens-scheme.el" = {
enable = true;
text = builtins.readFile ./lib/smartparens-scheme.el;
};
2023-12-13 12:35:06 +00:00
home.file.".emacs.d/lib/smartparens-clojure.el" = {
enable = true;
text = builtins.readFile ./lib/smartparens-clojure.el;
};
2023-11-15 16:09:47 +00:00
programs.emacs = {
enable = true;
2023-12-15 12:41:21 +00:00
package = pkgs.emacs29-pgtk;
2023-11-15 16:09:47 +00:00
extraConfig = builtins.readFile ./init.el;
};
}