From 37ffbb1402b0a6e3104f45055349612f47dc8c2f Mon Sep 17 00:00:00 2001 From: Timo Bingmann Date: Wed, 9 Jul 2025 17:56:57 -0700 Subject: [PATCH] emacs: use TERMINAL environment variable --- home/default/basic.nix | 5 +++++ home/develop/emacs/custom.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/home/default/basic.nix b/home/default/basic.nix index ffe1ee7..1a926c0 100644 --- a/home/default/basic.nix +++ b/home/default/basic.nix @@ -6,4 +6,9 @@ # Home Manager needs a bit of information about you and the paths it should manage. home.username = lib.mkDefault "tb"; home.homeDirectory = lib.mkDefault "/home/${config.home.username}"; + + # Set default terminal environment variable + home.sessionVariables = { + TERMINAL = lib.mkDefault "urxvt"; + }; } diff --git a/home/develop/emacs/custom.el b/home/develop/emacs/custom.el index f88d614..5c3b8fc 100644 --- a/home/develop/emacs/custom.el +++ b/home/develop/emacs/custom.el @@ -951,7 +951,7 @@ frame if FRAME is nil, and to 1 if AMT is nil." (interactive) (if (file-remote-p default-directory) (shell) - (start-process "terminal" nil "urxvt"))) + (start-process "terminal" nil (getenv "TERMINAL")))) ;; ----------------------------------------------------------------------------- ;; --- Compilation