diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-20 16:57:02 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-20 16:57:02 +0200 |
commit | da04fc47349bb2c2f7067353c6d687fe106a2786 (patch) | |
tree | bd9811f5303c36551a539734ac3743e0b803b9fb /.local | |
parent | 25bb0ea54cc59a9a2e1604d95790dbc54a37376a (diff) |
ec: Connect to ‘ec’ through ‘emacsclient’
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/ec | 12 |
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 |