summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-20 16:57:02 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-20 16:57:02 +0200
commitda04fc47349bb2c2f7067353c6d687fe106a2786 (patch)
treebd9811f5303c36551a539734ac3743e0b803b9fb
parent25bb0ea54cc59a9a2e1604d95790dbc54a37376a (diff)
ec: Connect to ‘ec’ through ‘emacsclient’
-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