eb65d13f5a
Change-Id: I49c8f5c0c18ac7664f5f120ad23a55c3bc19bd5b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3545 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ depot, pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs.emacsGcc.pkgs) withPackages;
|
|
|
|
emacs = withPackages (epkgs: [
|
|
# basic setup
|
|
epkgs.elpaPackages.undo-tree
|
|
epkgs.melpaPackages.evil
|
|
epkgs.melpaPackages.evil-collection
|
|
epkgs.melpaPackages.use-package
|
|
# languages
|
|
epkgs.bqn-mode
|
|
epkgs.elpaPackages.ada-mode
|
|
epkgs.melpaPackages.adoc-mode
|
|
epkgs.melpaPackages.dockerfile-mode
|
|
epkgs.melpaPackages.haskell-mode
|
|
epkgs.melpaPackages.markdown-mode
|
|
epkgs.melpaPackages.nix-mode
|
|
epkgs.melpaPackages.sly
|
|
epkgs.melpaPackages.yaml-mode
|
|
epkgs.rust-mode
|
|
epkgs.urweb-mode
|
|
# misc
|
|
epkgs.melpaPackages.hl-todo
|
|
epkgs.elpaPackages.rainbow-mode
|
|
epkgs.melpaPackages.rainbow-delimiters
|
|
# beyond text editing
|
|
epkgs.melpaPackages.elfeed
|
|
epkgs.melpaPackages.magit
|
|
epkgs.tvlPackages.tvl
|
|
]);
|
|
in
|
|
|
|
# sadly we can't give an init-file via the command line
|
|
pkgs.writeShellScriptBin "emacs" ''
|
|
exec ${emacs}/bin/emacs \
|
|
--no-init-file \
|
|
--directory ${./.} \
|
|
--eval "(require 'init)" \
|
|
"$@"
|
|
''
|