all repos — nixfiles @ 0741f0290ee5e7082ff421921583ff9ad8ec6f1e

System and user configuration, managed by nix and home-manager

user/settings/development/lisp.nix (view raw)

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
{
  config,
  pkgs,
  ...
}:
{
  home.packages =
    with pkgs;
    [
      clisp
      sbcl
      asdf
      cl-launch
    ]
    ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
      ccl
    ];

  programs.emacs.extraPackages =
    epkgs:
    (with epkgs; [
      (treesit-grammars.with-grammars (
        grammars: with grammars; [
          tree-sitter-commonlisp
        ]
      ))
    ]);

  programs.git.attributes = [
    "*.lisp diff=common-lisp"
  ];
  programs.git.extraConfig."diff.common-lisp" = {
    xfuncname = "^\\((def\\S+\\s+\\S+)";
  };
}