From: Mark Wooding Date: Mon, 7 Dec 2009 10:20:53 +0000 (+0000) Subject: bin/emacsclient-hack: Open the window on the right display. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/c4e84cb158a656fffecd4b8db436d895b69412cf bin/emacsclient-hack: Open the window on the right display. By default, Emacsclient doesn't open frames on the client's display. This grotty shim program does the right magic, by simply passing the appropriate command-line option. It's intended for use in `.desktop' files, because they don't allow shell expansion of environment variables in the right way. Silly rabbits. --- diff --git a/bin/emacsclient-hack b/bin/emacsclient-hack new file mode 100755 index 0000000..8379edb --- /dev/null +++ b/bin/emacsclient-hack @@ -0,0 +1,2 @@ +#! /bin/sh -e +exec emacsclient ${DISPLAY+--display "$DISPLAY"} "$@" diff --git a/setup b/setup index 1bc13f7..e48ce2e 100755 --- a/setup +++ b/setup @@ -212,6 +212,7 @@ scripts=" mdw-pager mdw-conf mdw-build + emacsclient-hack movemail-hack emerge-hack lesspipe.sh