diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-14 01:10:22 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-14 01:10:22 +0200 |
commit | ba37a8d2b0c82e0a01e8928091fce1b0724183a2 (patch) | |
tree | 870063ce66140292926d99dbca054571940de409 /.local/bin/ec | |
parent | 4391862cd546364b98b0a00b5e72358092bc3ec8 (diff) |
ec: Vastly simplify implementation
Diffstat (limited to '.local/bin/ec')
-rwxr-xr-x | .local/bin/ec | 18 |
1 files changed, 6 insertions, 12 deletions
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) |