summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-20 23:47:25 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-20 23:47:25 +0200
commitc2c5577a0d40d8c69d609792b918d4a045aff17d (patch)
tree34ef49fcdb929fc0b23a10eb1d3fbb428b0e5bfe
parent0188aa5382192e517869353471f008cb72cd6b1a (diff)
ec: Fix ‘ec’
-rwxr-xr-x.local/bin/ec11
1 files changed, 8 insertions, 3 deletions
diff --git a/.local/bin/ec b/.local/bin/ec
index 5190e05..ac6c1d6 100755
--- a/.local/bin/ec
+++ b/.local/bin/ec
@@ -1,4 +1,9 @@
-#!/usr/local/bin/andy
+#!/bin/sh
-test -t 2 && set mode t || set mode c
-exec emacsclient -s ec -$mode
+if test -t 2
+then
+ FLAGS=-t
+else
+ FLAGS=-cnqu
+fi
+exec emacsclient -s ec $FLAGS