aboutsummaryrefslogtreecommitdiff
path: root/modules/workstation/emacs/default.nix
blob: 63135a56f518e44dd7fffa30d6449cd9c3d1ff82 (plain)
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
45
46
{ pkgs, ... }:

let
  emacs = with pkgs; emacsWithPackages (epkgs:
    (with epkgs; [
      (runCommand "init.el" {} ''
          mkdir -p $out/share/emacs/site-lisp
          cp ${./init.el} $out/share/emacs/site-lisp/default.el
        '')

      # Language support
      fish-mode
      lsp-mode
      markdown-mode
      nim-mode
      nix-mode
      python-mode
      rust-mode

      color-identifiers-mode
      color-theme-sanityinc-tomorrow
      company
      company-lsp
      direnv
      fzf
      ido-vertical-mode
      ledger-mode
      lsp-ui
      magit
      monokai-theme
      multiple-cursors
      notmuch
      org
      protobuf-mode
      scad-mode
      smex
      sublimity
      undo-tree
      visual-fill-column
      which-key
      yasnippet
    ]));
in
{
  home.packages = [ emacs pkgs.direnv ];
}