(Emacs)~calc-mode now has display record and uses evil-collection

This commit is contained in:
2021-03-22 06:29:11 +00:00
parent c706c939b3
commit 9631244e9b

View File

@@ -1475,19 +1475,26 @@ for it.
Surprise, surprise Emacs comes with a calculator. At this point there Surprise, surprise Emacs comes with a calculator. At this point there
is little that surprises me in terms of Emacs' amazing capabilities. is little that surprises me in terms of Emacs' amazing capabilities.
=calc-mode= is a calculator system within Emacs that provides an =calc-mode= is a calculator system within Emacs that provides a
incredible array of mathematical operations. It uses reverse polish diverse array of mathematical operations. It uses reverse polish
notation to do calculations (though there is a standard infix notation to do calculations (though there is a standard infix
algebraic notation mode) and provides incredible utilities. algebraic notation mode) and provides incredible utilities.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package calc (use-package calc
:straight nil :straight nil
:display
("*Calculator*"
(display-buffer-at-bottom)
(window-height . 0.18))
:general :general
(leader (leader
"ac" #'calc) "ac" #'calc)
:init :init
(setq calc-algebraic-mode t)) (setq calc-algebraic-mode t)
:config
(with-eval-after-load "evil-collection"
(evil-collection-calc-setup)))
#+end_src #+end_src
*** Calctex *** Calctex
=calc-mode= also has a 3rd party package called =calctex=. It renders =calc-mode= also has a 3rd party package called =calctex=. It renders