diff options
author | jeschli <jeschli@gmail.com> | 2018-11-02 09:43:47 +0100 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2018-11-02 09:43:47 +0100 |
commit | ebe6108a41748ae3f746ea3125216668542bcd4b (patch) | |
tree | 4d9ead4ceb7a28fdf29274795f3e39df625b3b52 | |
parent | f19988849d05eba2cc248793266ac00db66ce6f0 (diff) |
j emacs: add ag, rust-mode and emacs-as-daemon
-rw-r--r-- | jeschli/2configs/emacs.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/jeschli/2configs/emacs.nix b/jeschli/2configs/emacs.nix index ace6b0f..4f5b690 100644 --- a/jeschli/2configs/emacs.nix +++ b/jeschli/2configs/emacs.nix @@ -89,7 +89,9 @@ let ${theme} ${windowCosmetics} ''; + emacsWithCustomPackages = (pkgs.emacsPackagesNgGen pkgs.emacs).emacsWithPackages (epkgs: [ + epkgs.melpaPackages.ag epkgs.melpaPackages.evil epkgs.melpaStablePackages.magit epkgs.melpaPackages.nix-mode @@ -97,12 +99,23 @@ let epkgs.melpaPackages.haskell-mode epkgs.melpaPackages.google-this epkgs.melpaPackages.monokai-alt-theme + epkgs.melpaPackages.rust-mode ]); + myEmacs = pkgs.writeDashBin "my-emacs" '' exec ${emacsWithCustomPackages}/bin/emacs -q -l ${dotEmacs} "$@" ''; + + myEmacsWithDaemon = pkgs.writeDashBin "my-emacs-daemon" '' + exec ${emacsWithCustomPackages}/bin/emacs -q -l ${dotEmacs} --daemon + ''; + + myEmacsClient = pkgs.writeDashBin "meclient" '' + exec ${emacsWithCustomPackages}/bin/emacsclient --create-frame + ''; + in { environment.systemPackages = [ - myEmacs + myEmacs myEmacsWithDaemon myEmacsClient ]; } |