diff options
Diffstat (limited to '')
-rw-r--r-- | home/emacs/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
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="; + }; + }; } |