summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-14 01:01:07 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-14 01:01:07 +0200
commit4391862cd546364b98b0a00b5e72358092bc3ec8 (patch)
tree655e7bebfab4745e58c6e041532a10f0350be789
parentabe8f942326656ae43b49269d9206a3fa6097ddf (diff)
ec: Add the ‘ec’ script
-rwxr-xr-x.local/bin/ec15
1 files changed, 15 insertions, 0 deletions
diff --git a/.local/bin/ec b/.local/bin/ec
new file mode 100755
index 0000000..b0b0374
--- /dev/null
+++ b/.local/bin/ec
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+emacs -Q -nw --eval="
+(progn
+ (menu-bar-mode -1)
+
+ (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\")))"