diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-01-15 14:50:30 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-01-15 14:57:06 -0700 |
commit | 8689ddf473e88f626bc1b142436f71451a78445c (patch) | |
tree | 4546707513e23dfad681f623f643ab6aab96d391 /bin | |
parent | 821875ba288c67a9477540db4061d94af6e2ca30 (diff) | |
download | dotfiles-8689ddf473e88f626bc1b142436f71451a78445c.tar.gz |
update-emacs-daemon-environment: use wrapper & fix -eval -> --eval
Use of the wrapper means we'll get in-tree Emacs at graphical login.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-emacs-daemon-environment | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/update-emacs-daemon-environment b/bin/update-emacs-daemon-environment index 9c1abf17..1198fd80 100755 --- a/bin/update-emacs-daemon-environment +++ b/bin/update-emacs-daemon-environment @@ -24,10 +24,12 @@ for var in DISPLAY \ eval isset=\${$var+x} if [ "$isset" = "x" ]; then eval value=\$$var - emacsclient -eval '(setenv "'$var'" "'$value'")' + ~/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 -emacsclient -eval '(spw/propagate-new-environment)' +~/src/dotfiles/scripts/desktop/emacsclient \ + -- --eval '(spw/propagate-new-environment)' |