From 42074da8658b672d3ea19ec4abeb9931e5aa2f67 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 24 Aug 2021 19:40:41 +0300 Subject: refactor(tazjin/emacs): Simplify package selection Lets trust that the Emacs overlay is using the right packages from the right sources by default. I'm not overly attached to any specific versions. Change-Id: Id53a4587f680965f13b5cd329a10f0384ff97c13 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3406 Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/default.nix | 58 ++++++++++++++++-------------------------- 1 file changed, 22 insertions(+), 36 deletions(-) (limited to 'users/tazjin') diff --git a/users/tazjin/emacs/default.nix b/users/tazjin/emacs/default.nix index f094600ebf19..e0899fd15b15 100644 --- a/users/tazjin/emacs/default.nix +++ b/users/tazjin/emacs/default.nix @@ -18,27 +18,16 @@ let identity = x: x; - tazjinsEmacs = pkgfun: (emacsWithPackages(epkgs: pkgfun( - # Actual ELPA packages (the enlightened!) - (with epkgs.elpaPackages; [ - avy - flymake - pinentry - rainbow-mode - undo-tree - xelb - ]) ++ - - # MELPA packages: - (with epkgs.melpaPackages; [ - ace-window + tazjinsEmacs = pkgfun: (emacsWithPackages(epkgs: pkgfun(with epkgs; [ ace-link - # bazel-mode TODO(tazjin): where did this go? + ace-window + avy + bazel browse-kill-ring cargo - company clojure-mode cmake-mode + company counsel counsel-notmuch dash-functional @@ -47,8 +36,11 @@ let eglot elixir-mode elm-mode - # erlang + erlang + exwm + flymake go-mode + google-c-style gruber-darker-theme haskell-mode ht @@ -69,10 +61,12 @@ let notmuch # this comes from pkgs.third_party paredit password-store + pinentry polymode prescient protobuf-mode rainbow-delimiters + rainbow-mode refine request restclient @@ -80,37 +74,29 @@ let sly string-edit swiper + telega telephone-line terraform-mode toml-mode transient + undo-tree use-package uuidgen + vterm web-mode websocket which-key + xelb yaml-mode yasnippet - ]) ++ - - # Other external packages: - (with epkgs; [ - exwm - google-c-style - telega - vterm - ]) ++ - - # Custom packages - (with epkgs.tvlPackages; [ - dottime - nix-util - term-switcher - tvl - # patched / overridden versions of packages - rcirc - ])))); + # Custom depot packages (either ours, or overridden ones) + tvlPackages.dottime + tvlPackages.nix-util + tvlPackages.rcirc + tvlPackages.term-switcher + tvlPackages.tvl + ]))); in lib.fix(self: l: f: pkgs.writeShellScriptBin "tazjins-emacs" '' export PATH="${emacsBinPath}:$PATH" exec ${tazjinsEmacs f}/bin/emacs \ -- cgit 1.4.1