1
0

emacs: use TERMINAL environment variable

This commit is contained in:
2025-07-09 17:56:57 -07:00
parent ee9aa036e2
commit 37ffbb1402
2 changed files with 6 additions and 1 deletions

View File

@@ -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";
};
}

View File

@@ -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