From ba37a8d2b0c82e0a01e8928091fce1b0724183a2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 14 Aug 2023 01:10:22 +0200 Subject: ec: Vastly simplify implementation --- .local/bin/ec | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to '.local/bin/ec') diff --git a/.local/bin/ec b/.local/bin/ec index b0b0374..4efe2da 100755 --- a/.local/bin/ec +++ b/.local/bin/ec @@ -1,15 +1,9 @@ -#!/bin/sh +#!/bin/env -S emacs -Q -nw -l -emacs -Q -nw --eval=" -(progn - (menu-bar-mode -1) +(menu-bar-mode -1) - (setq select-enable-primary t - help-window-select t) +(setq select-enable-primary t + help-window-select t) - (full-calc) - (keymap-set calc-mode-map \"q\" #'kill-emacs) - - (define-advice calc-full-help (:after nil) - (switch-to-buffer-other-window \"*Help*\") - (message \"Press ‘q’ to go back to calc\")))" +(full-calc) +(keymap-set calc-mode-map "q" #'kill-emacs) -- cgit v1.2.3