From da04fc47349bb2c2f7067353c6d687fe106a2786 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 20 Aug 2023 16:57:02 +0200 Subject: ec: Connect to ‘ec’ through ‘emacsclient’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/ec | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to '.local/bin/ec') 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 -- cgit v1.2.3