This commit is contained in:
Nathan McCarty 2025-01-13 14:53:42 -05:00
parent ac3825e6f9
commit 29fd118635
22 changed files with 424 additions and 424 deletions

View file

@ -1,21 +1,19 @@
{
emacsPackage ? null,
}:
{
{emacsPackage ? null}: {
config,
lib,
pkgs,
...
}:
let
}: let
myAspell = pkgs.aspellWithDicts (d: [
d.en
d.en-science
d.en-computers
]);
emacsPackage' = if emacsPackage == null then pkgs.emacs29-pgtk else emacsPackage;
in
{
emacsPackage' =
if emacsPackage == null
then pkgs.emacs29-pgtk
else emacsPackage;
in {
home.packages = with pkgs; [
# For markdown rendering
python312Packages.grip
@ -48,7 +46,7 @@ in
comment = "Org protocol";
desktopName = "org-protocol";
type = "Application";
mimeTypes = [ "x-scheme-handler/org-protocol" ];
mimeTypes = ["x-scheme-handler/org-protocol"];
})
# For format output
# wkhtmltopdf
@ -56,19 +54,20 @@ in
programs.emacs = {
enable = true;
package = emacsPackage';
extraPackages =
epkgs: with pkgs; [
extraPackages = epkgs:
with pkgs; [
epkgs.mu4e
epkgs.vterm
epkgs.pdf-tools
epkgs.emacsql
epkgs.emacsql-sqlite
(tree-sitter.withPlugins (
grammars: with grammars; [
tree-sitter-nix
tree-sitter-rust
tree-sitter-toml
]
grammars:
with grammars; [
tree-sitter-nix
tree-sitter-rust
tree-sitter-toml
]
))
];
};