packages/emacs.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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | { pkgs ? import <nixpkgs> {}, emacs ? pkgs.emacs }: let myEmacs = pkgs.lib.overrideDerivation (emacs) (attrs: { postInstall = attrs.postInstall + '' rm $out/share/applications/emacs.desktop ''; }); emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages; in emacsWithPackages (epkgs: (with epkgs; [ ace-link add-node-modules-path ag auto-compile auto-async-byte-compile avy bbdb bind-key cider clj-refactor clojure-mode cmd-to-echo command-log-mode company company-go company-lsp company-restclient company-tern company-web counsel counsel-projectile crux cyphejor define-word diminish dired-subtree discover-my-major discover-js2-refactor docker-compose-mode dockerfile-mode dtrt-indent dumb-jump eacl easy-hugo editorconfig eink-theme elisp-slime-nav emmet-mode evil evil-collection evil-commentary evil-leader evil-magit evil-mu4e evil-org evil-quickscope evil-snipe evil-space evil-surround exec-path-from-shell eyebrowse flycheck flycheck-pos-tip flycheck-vale geiser ggtags ghq git-gutter-fringe git-messenger git-timemachine go-eldoc go-mode go-projectile goto-chg haskell-mode helm helpful highlight-stages imenu-anywhere indium ivy-hydra jinja2-mode js2-mode js2-refactor json-mode # kubernetes # kubernetes-evil ledger-mode lsp-mode lsp-ui magit markdown-mode mocha monotropic-theme nginx-mode nix-mode nix-sandbox org-journal page-break-lines paredit password-store php-mode prettier-js projectile projectile-ripgrep quickrun relative-buffers restclient ripgrep rjsx-mode sentence-navigation scss-mode shrink-whitespace slime smart-tabs-mode smex spaceline spacemacs-theme swiper tern tide toml-mode typescript-mode undo-tree use-package web-mode wgrep-ag which-key yaml-mode ]) ++ (with epkgs.elpaPackages; [ rainbow-mode ]) ++ [ epkgs.redshank epkgs.hook-helpers epkgs.dired-du # From main packages set pkgs.mu ]) |