From ab1dbe94462d611ce482d3d52ddd4262bdd69228 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 26 Sep 2022 10:55:22 -0700 Subject: gdbmacs instance, s.t. can always run Emacs under gdb, and for Gnus --- .emacs.d/eshell/profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.emacs.d/eshell') diff --git a/.emacs.d/eshell/profile b/.emacs.d/eshell/profile index 59099604..42eb0e8a 100644 --- a/.emacs.d/eshell/profile +++ b/.emacs.d/eshell/profile @@ -1,7 +1,7 @@ # for processes spawned by Eshell, drop the -c/-t set in ~/.shenv, so that the -# Emacs frame containing Eshell gets reused -export EDITOR=emacsclient -export VISUAL=emacsclient +# Emacs frame containing Eshell gets reused, and pass -s if necessary +export EDITOR="emacsclient$(if (stringp (daemonp)) (concat \" -s\" (daemonp)) \"\")" +export VISUAL="$EDITOR" # debconf will fall back to this frontend but emit a warning; set it ourselves # to avoid that warning -- cgit v1.2.3