summaryrefslogtreecommitdiff
path: root/.emacs.d/eshell
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-09-26 10:55:22 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-09-30 22:34:04 -0700
commitab1dbe94462d611ce482d3d52ddd4262bdd69228 (patch)
treefb4307f62870cb235ccea11e7efd7a08e491b099 /.emacs.d/eshell
parent124632f7aca4beaca62ab10c711be3b1c65b851d (diff)
downloaddotfiles-ab1dbe94462d611ce482d3d52ddd4262bdd69228.tar.gz
gdbmacs instance, s.t. can always run Emacs under gdb, and for Gnus
Diffstat (limited to '.emacs.d/eshell')
-rw-r--r--.emacs.d/eshell/profile6
1 files changed, 3 insertions, 3 deletions
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