From ceb6a8075e1b6e1228b7c75a8da36ed520d32b5f Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Tue, 28 Feb 2023 18:26:57 +0100 Subject: home: set EDITOR to open emacs in tty --- modules/home-manager/personal/gui/x/i3/keybindings.nix | 2 +- modules/home-manager/personal/programs/emacs.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/personal/gui/x/i3/keybindings.nix b/modules/home-manager/personal/gui/x/i3/keybindings.nix index 3781867..62da227 100644 --- a/modules/home-manager/personal/gui/x/i3/keybindings.nix +++ b/modules/home-manager/personal/gui/x/i3/keybindings.nix @@ -13,7 +13,7 @@ in { keybindings = lib.mkOptionDefault { # launching apps - "${modifier}+Control+Return" = ''exec "$EDITOR"''; + "${modifier}+Control+Return" = ''exec "emacsclient --create-frame"''; "${modifier}+Shift+Return" = ''exec "$BROWSER"''; "${modifier}+d" = lib.mkIf config.programs.rofi.enable ''exec "rofi -modi drun,filebrowser,run,window -show drun"''; diff --git a/modules/home-manager/personal/programs/emacs.nix b/modules/home-manager/personal/programs/emacs.nix index 2189541..cd1f40c 100644 --- a/modules/home-manager/personal/programs/emacs.nix +++ b/modules/home-manager/personal/programs/emacs.nix @@ -26,7 +26,7 @@ in { client.enable = lib.mkDefault true; startWithUserSession = lib.mkDefault true; }; - home.sessionVariables.EDITOR = "emacsclient --create-frame"; + home.sessionVariables.EDITOR = "emacsclient --tty"; # add some packages necessary in spacemacs programs.emacs.extraPackages = -- cgit v1.2.3