Fix emacs

This commit is contained in:
Paul-Henri Froidmont 2024-02-24 08:57:35 +01:00
parent eea9e47197
commit bcae4ff2c9
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -2,16 +2,7 @@
with lib;
with lib.my;
let
cfg = config.modules.editor.emacs;
myEmacs = pkgs.unstable.emacs29.override {
withNativeCompilation = true;
withSQLite3 = true;
withTreeSitter = true;
withWebP = true;
};
myEmacsWithPackages = myEmacs.pkgs.withPackages
(epkgs: with epkgs; [ vterm pdf-tools treesit-grammars.with-all-grammars ]);
let cfg = config.modules.editor.emacs;
in {
options.modules.editor.emacs = { enable = mkBoolOpt false; };
@ -77,13 +68,23 @@ in {
services.emacs = {
enable = true;
client.enable = true;
package = myEmacsWithPackages;
};
# Use either this or nix-doom-emacs
programs.emacs = {
enable = true;
package = myEmacs;
package = pkgs.unstable.emacs29.override {
withNativeCompilation = true;
withSQLite3 = true;
withTreeSitter = true;
withWebP = true;
};
extraPackages = epkgs:
with epkgs; [
vterm
pdf-tools
treesit-grammars.with-all-grammars
];
};
xdg.configFile = { "doom" = { source = ./doom.d; }; };
home.sessionPath = [