summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/ec12
1 files changed, 3 insertions, 9 deletions
diff --git a/.local/bin/ec b/.local/bin/ec
index f3a101b..0e748af 100755
--- a/.local/bin/ec
+++ b/.local/bin/ec
@@ -1,10 +1,4 @@
-#!/bin/env -S emacs -Q -nw -l
+#!/bin/sh
-(menu-bar-mode -1)
-
-(setq select-enable-primary t
- help-window-select t
- calc-display-trail nil)
-
-(full-calc)
-(keymap-set calc-mode-map "q" #'kill-emacs)
+[ -t 2 ] && mode=t || mode=c
+exec emacsclient -s ec -$mode