From 85f9c5c4f61a047327f8743a1555726d394fa966 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 4 Mar 2024 22:58:02 -0800 Subject: [PATCH 1/2] Add emacsclient-other-window --- emacsclient-other-window | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 emacsclient-other-window diff --git a/emacsclient-other-window b/emacsclient-other-window new file mode 100755 index 0000000..6c95e0c --- /dev/null +++ b/emacsclient-other-window @@ -0,0 +1,8 @@ +#!/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#\"#\\\"#}\")" From 32618dd049af24069c4da85cc2f9d3eb63af84f2 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 4 Mar 2024 22:59:39 -0800 Subject: [PATCH 2/2] Undo last commit --- emacsclient-other-window | 8 -------- 1 file changed, 8 deletions(-) delete mode 100755 emacsclient-other-window diff --git a/emacsclient-other-window b/emacsclient-other-window deleted file mode 100755 index 6c95e0c..0000000 --- a/emacsclient-other-window +++ /dev/null @@ -1,8 +0,0 @@ -#!/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#\"#\\\"#}\")"