From 1125aaa49aec6a220fd3b9d03076fec398b35a14 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 9 Apr 2022 09:42:03 -0700 Subject: add a few more modules to home/ and delete stuff --- home/emacs/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'home/emacs') diff --git a/home/emacs/default.nix b/home/emacs/default.nix index b6c07d3..17b44c5 100644 --- a/home/emacs/default.nix +++ b/home/emacs/default.nix @@ -5,10 +5,16 @@ in { enable = mkEnableOption "emacs configuration"; }; - config.home.packages = with pkgs; - lib.mkIf cfg.enable ([ + config.home = lib.mkIf cfg.enable { + packages = with pkgs; [ emacsPgtkGcc # see https://github.com/hlissner/doom-emacs/issues/4138 (aspellWithDicts (dicts: with dicts; [ en en-computers en-science ])) - ]); + ]; + + sessionVariables = { + EDITOR = "emacsclient -c -a="; + VISUAL = "emacsclient -c -a="; + }; + }; } -- cgit 1.4.1