Browse Source

Add script to run emacs or create a client window

Samuel W. Flint 5 years ago
parent
commit
b93b37c7f7
1 changed files with 7 additions and 0 deletions
  1. 7 0
      emacs-or-client

+ 7 - 0
emacs-or-client

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if emacsclient --alternate-editor=false -e 't' ; then
+    emacsclient -c -n
+else
+    emacs
+fi