summaryrefslogtreecommitdiff
path: root/.local/bin/ec
blob: b0b0374242ea9d22acf29d9915cb238a95c49006 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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\")))"