From 99c4179cb500dfc8cf33b3c70e62dcb2711d9bd8 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 9 Jan 2025 11:41:29 -0500 Subject: [PATCH] Emacs service --- home-manager/machines/crash/home.nix | 5 +---- home-manager/modules/programs/emacs.nix | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home-manager/machines/crash/home.nix b/home-manager/machines/crash/home.nix index 8d565bd..bab9b46 100644 --- a/home-manager/machines/crash/home.nix +++ b/home-manager/machines/crash/home.nix @@ -39,10 +39,7 @@ nixpkgs.config.allowUnfree = true; # Machine specific configuration - programs.nushell.environmentVariables = { - VISUAL = "nvim"; - EDITOR = "nvim"; - }; + services.emacs.defaultEditor = true; } ) ]; diff --git a/home-manager/modules/programs/emacs.nix b/home-manager/modules/programs/emacs.nix index cf61e4d..18301c8 100644 --- a/home-manager/modules/programs/emacs.nix +++ b/home-manager/modules/programs/emacs.nix @@ -72,4 +72,8 @@ in )) ]; }; + services.emacs = { + enable = true; + client.enable = true; + }; }