From 9f7680bd00775961ee58468e89ac5ada9f79dc5a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 14 Aug 2023 01:21:08 +0200 Subject: emacs & ec: Disable ‘calc-mode’ trail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/config.org | 12 ++++++++++++ .local/bin/ec | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 28d00cb..55b4dd5 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -543,6 +543,18 @@ autocompleting code but has other uses too I guess. #+END_SRC +** Mathematics + +The built-in emacs calculator ~calc~ is genuinely the best calculator program I +have ever used. Annoyingly though, it has a ‘trail’ that is always around. I +don’t like it. + +#+BEGIN_SRC elisp + + (setq calc-display-trail nil) + +#+END_SRC + ** Programming *** Indentation diff --git a/.local/bin/ec b/.local/bin/ec index 4efe2da..f3a101b 100755 --- a/.local/bin/ec +++ b/.local/bin/ec @@ -3,7 +3,8 @@ (menu-bar-mode -1) (setq select-enable-primary t - help-window-select t) + help-window-select t + calc-display-trail nil) (full-calc) (keymap-set calc-mode-map "q" #'kill-emacs) -- cgit v1.2.3