emacs: Follow emacs-29 branch instead of master

This commit is contained in:
Erwin Boskma 2023-04-03 09:54:23 +02:00
parent 8882086b63
commit e717eb7356
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -17,7 +17,7 @@ in
home.username = "erwin"; home.username = "erwin";
home.homeDirectory = "/home/erwin"; home.homeDirectory = "/home/erwin";
home.sessionVariables = { home.sessionVariables = {
EDITOR = "${pkgs.neovim}/bin/nvim"; EDITOR = "${config.home-manager.users.erwin.eboskma.programs.emacs.package}/bin/emacsclient -c";
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -42,7 +42,20 @@ in
emacs = { emacs = {
enable = true; enable = true;
# package = with pkgs; ((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: [ epkgs.emacsql epkgs.emacsql-sqlite ])); # package = with pkgs; ((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: [ epkgs.emacsql epkgs.emacsql-sqlite ]));
package = pkgs.emacsPgtk; package =
let
emacs29 = pkgs.emacsPgtk.overrideAttrs (_: {
src = pkgs.fetchFromSavannah {
repo = "emacs";
rev = "3bdbb66efb9895b8ed55270075fa7d8329f8d36b";
sha256 = "NjzWCNDCDc94aDf6nmH0K4GNk/li+a2QAuwDMrPibrE=";
};
});
in
emacs29.override {
treeSitterPlugins = builtins.attrValues (filterAttrs (_: isDerivation) pkgs.tree-sitter-grammars);
};
daemon = true; daemon = true;
}; };
electron = { electron = {