nixconfig/emacs/emacs.nix
2023-12-13 13:35:06 +01:00

101 lines
2 KiB
Nix

{ config, lib, pkgs, ...}:
{
home.file.".emacs.d/early-init.el" = {
enable = false;
text = "(setq package-enable-at-startup nil)";
};
home.file.".emacs.d/init.el" = {
enable = true;
text = builtins.readFile ./init.el;
};
home.file.".emacs.d/templates" = {
enable = true;
text = builtins.readFile ./templates;
};
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;
};
home.file.".emacs.d/lib/smartparens-clojure.el" = {
enable = true;
text = builtins.readFile ./lib/smartparens-clojure.el;
};
programs.emacs = {
enable = true;
package = pkgs.emacs29-gtk3;
extraConfig = builtins.readFile ./init.el;
extraPackages = epkgs: with epkgs; [
airline-themes
all-the-icons
cape
catppuccin-theme
cider
circe
clojure-ts-mode
code-review
color-theme-modern
consult
consult-eglot
consult-notes
corfu
corfu-terminal
delight
dhall-mode
editorconfig
eglot
el-patch
embark
embark-consult
evil
evil-cleverparens
evil-collection
evil-easymotion
evil-snipe
forge
geiser
geiser-chicken
geiser-guile
git-gutter
goto-chg
guix
keychain-environment
lsp-scheme
magit
magit-todos
marginalia
moe-theme
nerd-icons-completion
nerd-icons-corfu
nix-mode
nix-ts-mode
orderless
org
org-modern
org-rainbow-tags
org-roam
org-roam-ui
package-lint
pass
password-store
password-store-otp
plan9-theme
powerline
rainbow-delimiters
smartparens
tempel
tree-sitter
tree-sitter-langs
vertico
websocket
wgrep
which-key
xref-union
zig-mode
];
};
}