about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-21 19:57:48 +0900
committersefidel <contact@sefidel.net>2023-08-21 20:28:10 +0900
commitffb90b9e874e4cca5ea03c4c9f242b5c7dba6d1c (patch)
treea3bcb0bf51dcd3a8806f877d7876962fdc653cee
parent38e760863b5324a45d705c2a0c5876d87460c4eb (diff)
downloadnixrc-ffb90b9e874e4cca5ea03c4c9f242b5c7dba6d1c.tar.gz
nixrc-ffb90b9e874e4cca5ea03c4c9f242b5c7dba6d1c.zip
feat(home/development): add emacs
-rw-r--r--home/profiles/development/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/home/profiles/development/default.nix b/home/profiles/development/default.nix
index 0e3c049..c47040e 100644
--- a/home/profiles/development/default.nix
+++ b/home/profiles/development/default.nix
@@ -4,6 +4,10 @@ let
   cfg = config.profiles.development;
 in
 {
+  imports = [
+    ../../modules/programs/zshell
+  ];
+
   options.profiles.development = {
     enable = lib.mkEnableOption
       "A profile that enables the system to be used for developing programs";
@@ -177,6 +181,16 @@ in
       };
     };
 
+    services.emacs = lib.mkIf pkgs.stdenv.isLinux {
+      enable = true;
+      client.enable = true;
+      socketActivation.enable = true;
+    };
+    programs.emacs.enable = true;
+    programs.zshell.aliases = {
+      e = "emacsclient -ta emacs";
+    };
+
     home.packages = [
       pkgs.bfg-repo-cleaner
       pkgs.diffoscopeMinimal