-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs.nix
44 lines (40 loc) · 1.06 KB
/
emacs.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ config, lib, pkgs, ... }:
with lib;
let
fasm-mode = { lib, trivialBuild, fetchFromGitHub, fetchpatch, emacs }:
trivialBuild rec {
pname = "fasm-mode";
version = "0.1.11";
src = fetchFromGitHub {
owner = "emacsattic";
repo = pname;
rev = "53286cdc429c0b53d51460ed0bb067455dab5262";
hash = "sha256-9ve6dYEHjrldOyhcc/BjT+DXL7b6Fkw+mLFqWtE4q0k=";
};
meta = with lib; {
homepage = "https://github.com/emacsattic/fasm-mode";
inherit (emacs.meta) platforms;
};
};
in {
programs.emacs = {
enable = true;
# FIXME magit depends on seq-keep, which is only available after 29.1
package = pkgs.emacs29-pgtk;
extraConfig = builtins.readFile ./init.el;
extraPackages = epkgs:
with epkgs; [
ag
auctex
default-text-scale
json-mode
magit
melpaPackages.envrc
nix-mode
paredit
rainbow-delimiters
multiple-cursors
(callPackage fasm-mode { inherit (pkgs) fetchFromGitHub; })
];
};
}