[Emacs] Disable service, set EDITOR environment variable

This commit is contained in:
Ivan Malison 2023-08-23 00:11:27 -06:00
parent 0c7073fcaf
commit 6bac58a3d8
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ pkgs, config, specialArgs, ... }: { pkgs, config, specialArgs, ... }:
{ {
services.emacs = { services.emacs = {
enable = true; enable = false;
defaultEditor = true; defaultEditor = true;
startWithUserSession = false; startWithUserSession = false;
socketActivation.enable = true; socketActivation.enable = true;

View File

@ -51,6 +51,7 @@ with lib;
ROFI_SYSTEMD_TERM = "alacritty -e"; ROFI_SYSTEMD_TERM = "alacritty -e";
NIXPKGS_GIT_REV = "${inputs.nixpkgs.rev}"; NIXPKGS_GIT_REV = "${inputs.nixpkgs.rev}";
NIXPKGS_SOURCE = "${inputs.nixpkgs.outPath}"; NIXPKGS_SOURCE = "${inputs.nixpkgs.outPath}";
EDITOR = "emacsclient --alternate-editor emacs";
}; };
interactiveShellInit = '' interactiveShellInit = ''
vterm_printf(){ vterm_printf(){