Add emacs-server-set-wayland-display.zsh
This commit is contained in:
parent
35ee6bd659
commit
b7c6aad764
12
emacs-server-set-wayland-display.zsh
Executable file
12
emacs-server-set-wayland-display.zsh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
setopt rcquotes
|
||||||
|
|
||||||
|
printf '%s' "${WAYLAND_DISPLAY}" |
|
||||||
|
/usr/bin/emacs --batch --insert=/dev/fd/0 \
|
||||||
|
--eval \
|
||||||
|
'(let ((wayland-display (buffer-string)))
|
||||||
|
(require ''server)
|
||||||
|
(server-eval-at
|
||||||
|
"server"
|
||||||
|
`(setenv "WAYLAND_DISPLAY" ,wayland-display)))'
|
Loading…
Reference in New Issue
Block a user