random-scripts/emacsclient-other-window

9 lines
258 B
Plaintext
Raw Normal View History

2024-03-04 22:58:02 -08:00
#!/usr/bin/env zsh
# Note, this ONLY works when called with an existing emacs frame focused
# print the normal error message with no args
(( $# < 1 )) && exec emacsclient
exec emacsclient --eval "(find-file-other-window \"${1:gs#\\#\\\\#:gs#\"#\\\"#}\")"