]> git.donarmstrong.com Git - bin.git/commitdiff
add emacs_r and emacsclient_r
authorDon Armstrong <don@donarmstrong.com>
Sat, 17 May 2014 21:37:19 +0000 (14:37 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 17 May 2014 21:37:19 +0000 (14:37 -0700)
emacs_r [new file with mode: 0755]
emacsclient_r [new symlink]

diff --git a/emacs_r b/emacs_r
new file mode 100755 (executable)
index 0000000..ba7ccbc
--- /dev/null
+++ b/emacs_r
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "x$(basename $0)" = "xemacs_r" ]; then
+    emacs -e '(setq server-name "R")' "$@";
+elif [ "x$(basename $0)" = "xemacsclient_r" ]; then
+    emacsclient -s R "$@";
+else
+    echo "No clue what to do '$0'";
+fi;
diff --git a/emacsclient_r b/emacsclient_r
new file mode 120000 (symlink)
index 0000000..9e4211e
--- /dev/null
@@ -0,0 +1 @@
+emacs_r
\ No newline at end of file