summaryrefslogtreecommitdiff
path: root/modules/emacs/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/emacs/package.nix')
-rw-r--r--modules/emacs/package.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/emacs/package.nix b/modules/emacs/package.nix
new file mode 100644
index 0000000..9bebd0f
--- /dev/null
+++ b/modules/emacs/package.nix
@@ -0,0 +1,33 @@
+{ pkgs }: let
+ outside-emacs = with pkgs; [
+ git
+ nil
+ ripgrep
+ emacs-lsp-booster
+ delta
+ ];
+in
+ pkgs.emacsWithPackagesFromUsePackage {
+ package = pkgs.emacs-unstable.override {
+ withGTK3 = true;
+ withNativeCompilation = true;
+ withAlsaLib = true;
+ withSystemd = true;
+ withToolkitScrollBars = true;
+ withImageMagick = true;
+ };
+ override = epkgs: let
+ callPackage = pkgs.lib.callPackageWith (pkgs // epkgs);
+ in epkgs // {
+ eglot-booster = callPackage ./eglot-booster.nix {};
+ };
+ config = ./README.org;
+ alwaysTangle = true;
+ defaultInitFile = true;
+ extraEmacsPackages = epkgs: [
+ (epkgs.treesit-grammars.with-grammars (g: with g; [
+ tree-sitter-rust
+ tree-sitter-python
+ ]))
+ ] ++ outside-emacs;
+ }