瀏覽代碼

Add script to run emacs or create a client window

Samuel W. Flint 6 年之前
父節點
當前提交
b93b37c7f7
共有 1 個文件被更改,包括 7 次插入0 次删除
  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