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 <mail@tazj.in> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									592aab54b2
								
							
						
					
					
						commit
						42074da865
					
				
					 1 changed files with 22 additions and 36 deletions
				
			
		| 
						 | 
					@ -18,27 +18,16 @@ let
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  identity = x: x;
 | 
					  identity = x: x;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tazjinsEmacs = pkgfun: (emacsWithPackages(epkgs: pkgfun(
 | 
					  tazjinsEmacs = pkgfun: (emacsWithPackages(epkgs: pkgfun(with epkgs; [
 | 
				
			||||||
  # Actual ELPA packages (the enlightened!)
 | 
					 | 
				
			||||||
  (with epkgs.elpaPackages; [
 | 
					 | 
				
			||||||
    avy
 | 
					 | 
				
			||||||
    flymake
 | 
					 | 
				
			||||||
    pinentry
 | 
					 | 
				
			||||||
    rainbow-mode
 | 
					 | 
				
			||||||
    undo-tree
 | 
					 | 
				
			||||||
    xelb
 | 
					 | 
				
			||||||
  ]) ++
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # MELPA packages:
 | 
					 | 
				
			||||||
  (with epkgs.melpaPackages; [
 | 
					 | 
				
			||||||
    ace-window
 | 
					 | 
				
			||||||
    ace-link
 | 
					    ace-link
 | 
				
			||||||
    # bazel-mode TODO(tazjin): where did this go?
 | 
					    ace-window
 | 
				
			||||||
 | 
					    avy
 | 
				
			||||||
 | 
					    bazel
 | 
				
			||||||
    browse-kill-ring
 | 
					    browse-kill-ring
 | 
				
			||||||
    cargo
 | 
					    cargo
 | 
				
			||||||
    company
 | 
					 | 
				
			||||||
    clojure-mode
 | 
					    clojure-mode
 | 
				
			||||||
    cmake-mode
 | 
					    cmake-mode
 | 
				
			||||||
 | 
					    company
 | 
				
			||||||
    counsel
 | 
					    counsel
 | 
				
			||||||
    counsel-notmuch
 | 
					    counsel-notmuch
 | 
				
			||||||
    dash-functional
 | 
					    dash-functional
 | 
				
			||||||
| 
						 | 
					@ -47,8 +36,11 @@ let
 | 
				
			||||||
    eglot
 | 
					    eglot
 | 
				
			||||||
    elixir-mode
 | 
					    elixir-mode
 | 
				
			||||||
    elm-mode
 | 
					    elm-mode
 | 
				
			||||||
    # erlang
 | 
					    erlang
 | 
				
			||||||
 | 
					    exwm
 | 
				
			||||||
 | 
					    flymake
 | 
				
			||||||
    go-mode
 | 
					    go-mode
 | 
				
			||||||
 | 
					    google-c-style
 | 
				
			||||||
    gruber-darker-theme
 | 
					    gruber-darker-theme
 | 
				
			||||||
    haskell-mode
 | 
					    haskell-mode
 | 
				
			||||||
    ht
 | 
					    ht
 | 
				
			||||||
| 
						 | 
					@ -69,10 +61,12 @@ let
 | 
				
			||||||
    notmuch # this comes from pkgs.third_party
 | 
					    notmuch # this comes from pkgs.third_party
 | 
				
			||||||
    paredit
 | 
					    paredit
 | 
				
			||||||
    password-store
 | 
					    password-store
 | 
				
			||||||
 | 
					    pinentry
 | 
				
			||||||
    polymode
 | 
					    polymode
 | 
				
			||||||
    prescient
 | 
					    prescient
 | 
				
			||||||
    protobuf-mode
 | 
					    protobuf-mode
 | 
				
			||||||
    rainbow-delimiters
 | 
					    rainbow-delimiters
 | 
				
			||||||
 | 
					    rainbow-mode
 | 
				
			||||||
    refine
 | 
					    refine
 | 
				
			||||||
    request
 | 
					    request
 | 
				
			||||||
    restclient
 | 
					    restclient
 | 
				
			||||||
| 
						 | 
					@ -80,37 +74,29 @@ let
 | 
				
			||||||
    sly
 | 
					    sly
 | 
				
			||||||
    string-edit
 | 
					    string-edit
 | 
				
			||||||
    swiper
 | 
					    swiper
 | 
				
			||||||
 | 
					    telega
 | 
				
			||||||
    telephone-line
 | 
					    telephone-line
 | 
				
			||||||
    terraform-mode
 | 
					    terraform-mode
 | 
				
			||||||
    toml-mode
 | 
					    toml-mode
 | 
				
			||||||
    transient
 | 
					    transient
 | 
				
			||||||
 | 
					    undo-tree
 | 
				
			||||||
    use-package
 | 
					    use-package
 | 
				
			||||||
    uuidgen
 | 
					    uuidgen
 | 
				
			||||||
 | 
					    vterm
 | 
				
			||||||
    web-mode
 | 
					    web-mode
 | 
				
			||||||
    websocket
 | 
					    websocket
 | 
				
			||||||
    which-key
 | 
					    which-key
 | 
				
			||||||
 | 
					    xelb
 | 
				
			||||||
    yaml-mode
 | 
					    yaml-mode
 | 
				
			||||||
    yasnippet
 | 
					    yasnippet
 | 
				
			||||||
  ]) ++
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Other external packages:
 | 
					    # Custom depot packages (either ours, or overridden ones)
 | 
				
			||||||
  (with epkgs; [
 | 
					    tvlPackages.dottime
 | 
				
			||||||
    exwm
 | 
					    tvlPackages.nix-util
 | 
				
			||||||
    google-c-style
 | 
					    tvlPackages.rcirc
 | 
				
			||||||
    telega
 | 
					    tvlPackages.term-switcher
 | 
				
			||||||
    vterm
 | 
					    tvlPackages.tvl
 | 
				
			||||||
  ]) ++
 | 
					  ])));
 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Custom packages
 | 
					 | 
				
			||||||
  (with epkgs.tvlPackages; [
 | 
					 | 
				
			||||||
    dottime
 | 
					 | 
				
			||||||
    nix-util
 | 
					 | 
				
			||||||
    term-switcher
 | 
					 | 
				
			||||||
    tvl
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # patched / overridden versions of packages
 | 
					 | 
				
			||||||
    rcirc
 | 
					 | 
				
			||||||
  ]))));
 | 
					 | 
				
			||||||
in lib.fix(self: l: f: pkgs.writeShellScriptBin "tazjins-emacs" ''
 | 
					in lib.fix(self: l: f: pkgs.writeShellScriptBin "tazjins-emacs" ''
 | 
				
			||||||
  export PATH="${emacsBinPath}:$PATH"
 | 
					  export PATH="${emacsBinPath}:$PATH"
 | 
				
			||||||
  exec ${tazjinsEmacs f}/bin/emacs \
 | 
					  exec ${tazjinsEmacs f}/bin/emacs \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue