nixos-config/modules/home/emacs.nix

43 lines
903 B
Nix
Raw Normal View History

2025-02-25 12:40:13 -05:00
{ pkgs, ... }:
2025-02-08 22:48:41 -05:00
let
emacs_pkg = ((pkgs.emacsPackagesFor pkgs.emacs30-pgtk).emacsWithPackages (
2025-02-08 22:48:41 -05:00
epkgs: [
epkgs.vterm
epkgs.mu4e
epkgs.sly
epkgs.sly-quicklisp
epkgs.geiser-racket
epkgs.cider
2025-02-08 22:48:41 -05:00
epkgs.editorconfig
epkgs.shfmt
2025-02-18 13:01:44 -05:00
epkgs.apheleia
2025-02-08 22:48:41 -05:00
epkgs.parinfer-rust-mode
epkgs.manualPackages.tree-sitter-langs
epkgs.manualPackages.treesit-grammars.with-all-grammars
epkgs.pretty-sha-path
epkgs.pdf-tools
epkgs.all-the-icons
2025-02-25 12:40:13 -05:00
epkgs.eldoc
2025-02-08 22:48:41 -05:00
]
));
in {
programs.emacs = {
enable = true;
package = emacs_pkg;
};
services.emacs = {
enable = true;
defaultEditor = true;
package = emacs_pkg;
socketActivation.enable = true;
client = {
enable = true;
arguments = ["-n" "-r"];
};
};
xdg.configFile."emacs".enable = false;
}