final: prev: let myEmacs = prev.emacs; emacsWithPackages = (prev.emacsPackagesGen myEmacs).emacsWithPackages; in { emacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ magit zerodark-theme ]) ++ (with epkgs.melpaPackages; [ # undo-tree # zoom-frm ]) ++ (with epkgs.elpaPackages; [ auctex beacon nameless ]) ++ [ #prev.notmuch ]); }