Parcourir la source

Add script to run emacs or create a client window

Samuel W. Flint il y a 6 ans
Parent
commit
b93b37c7f7
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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