emacs: use TERMINAL environment variable
This commit is contained in:
@@ -6,4 +6,9 @@
|
|||||||
# Home Manager needs a bit of information about you and the paths it should manage.
|
# Home Manager needs a bit of information about you and the paths it should manage.
|
||||||
home.username = lib.mkDefault "tb";
|
home.username = lib.mkDefault "tb";
|
||||||
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||||
|
|
||||||
|
# Set default terminal environment variable
|
||||||
|
home.sessionVariables = {
|
||||||
|
TERMINAL = lib.mkDefault "urxvt";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -951,7 +951,7 @@ frame if FRAME is nil, and to 1 if AMT is nil."
|
|||||||
(interactive)
|
(interactive)
|
||||||
(if (file-remote-p default-directory)
|
(if (file-remote-p default-directory)
|
||||||
(shell)
|
(shell)
|
||||||
(start-process "terminal" nil "urxvt")))
|
(start-process "terminal" nil (getenv "TERMINAL"))))
|
||||||
|
|
||||||
;; -----------------------------------------------------------------------------
|
;; -----------------------------------------------------------------------------
|
||||||
;; --- Compilation
|
;; --- Compilation
|
||||||
|
|||||||
Reference in New Issue
Block a user