From 5cf456e4f58b00698680afd64b150d81f7824f1e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 16:06:28 +0200 Subject: [PATCH] refactor(emacs): Install packages directly from MELPA Never use MELPA Stable, as it's based on the assumption that authors at least occasionally tag their code (they don't). --- emacs.nix | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/emacs.nix b/emacs.nix index 633b83be2..98e482d79 100644 --- a/emacs.nix +++ b/emacs.nix @@ -59,13 +59,8 @@ nix-mode = with pkgs; emacsPackagesNg.melpaBuild { }; in emacsWithPackages(epkgs: - # Pinned packages: - (with pkgs.pinnedEmacs; [ - exwm - ivy - ivy-gitlab - ivy-pass - ]) ++ + # Pinned packages (from unstable): + (with pkgs; with lib; attrValues pinnedEmacs) ++ # Actual ELPA packages (the enlightened!) (with epkgs.elpaPackages; [ @@ -79,22 +74,25 @@ in emacsWithPackages(epkgs: which-key ]) ++ - # Stable packages: - (with epkgs.melpaStablePackages; [ + # MELPA packages: + (with epkgs.melpaPackages; [ browse-kill-ring cargo dash dash-functional dockerfile-mode + edit-server + elm-mode erlang + flx flycheck go-mode gruber-darker-theme haskell-mode - helm ht idle-highlight-mode intero + kotlin-mode magit markdown-mode-plus multi-term @@ -102,27 +100,19 @@ in emacsWithPackages(epkgs: nginx-mode paredit password-store + pg racer + racket-mode rainbow-delimiters + restclient rust-mode s smart-mode-line string-edit terraform-mode - yaml-mode - ]) ++ - - # Bleeding-edge packages: - (with epkgs.melpaPackages; [ - edit-server - elm-mode - helm-pass - kotlin-mode - pg - racket-mode - restclient toml-mode uuidgen + yaml-mode ]) ++ # Custom packaged Emacs packages: