summaryrefslogtreecommitdiff
path: root/bin/update-emacs-daemon-environment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-emacs-daemon-environment')
-rwxr-xr-xbin/update-emacs-daemon-environment35
1 files changed, 0 insertions, 35 deletions
diff --git a/bin/update-emacs-daemon-environment b/bin/update-emacs-daemon-environment
deleted file mode 100755
index 1198fd80..00000000
--- a/bin/update-emacs-daemon-environment
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# Update Emacs daemon environment vars for a new interactive session. This
-# allows us to have the Emacs daemon survive restarts of the graphical desktop
-# environment, and to update Emacs on a remote host when there is a new
-# forwarded SSH agent socket.
-#
-# Note that this will start the Emacs daemon if it not up already.
-
-which emacsclient >/dev/null || exit 0
-
-for var in DISPLAY \
- WAYLAND_DISPLAY \
- SSH_ASKPASS \
- SSH_AUTH_SOCK \
- SSH_AGENT_PID \
- SSH_CONNECTION \
- WINDOWID \
- XAUTHORITY \
- XDG_SESSION_TYPE \
- XDG_CURRENT_DESKTOP \
- SWAYSOCK \
- I3SOCK; do
- eval isset=\${$var+x}
- if [ "$isset" = "x" ]; then
- eval value=\$$var
- ~/src/dotfiles/scripts/desktop/emacsclient \
- -- --eval '(setenv "'$var'" "'$value'")'
- fi
-done
-
-# finally, also call a function which now updates the values in Eshells and
-# our (Common) Lisp image(s) from Emacs' values
-~/src/dotfiles/scripts/desktop/emacsclient \
- -- --eval '(spw/propagate-new-environment)'