diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-27 21:56:20 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-27 21:56:20 +0100 |
commit | c929f952980f7bdca777f80d9f9ab4d22bbce09f (patch) | |
tree | 8abd288a7fb2c199bad628f74ea5a0a1e899bfce /Emacs/.config/emacs | |
parent | 86f1cf1075ed15e3b7a91b881006d42939eb2947 (diff) | |
download | dotfiles-c929f952980f7bdca777f80d9f9ab4d22bbce09f.tar.gz dotfiles-c929f952980f7bdca777f80d9f9ab4d22bbce09f.tar.bz2 dotfiles-c929f952980f7bdca777f80d9f9ab4d22bbce09f.zip |
(Emacs)+config for calculator and calctex
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 53cc686..a4ce559 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1308,6 +1308,41 @@ freely. (with-eval-after-load "evil-collection" (evil-collection-ibuffer-setup))) #+end_src +** Calculator +Surprise, surprise Emacs comes with a calculator. At this point there +is little that surprises me in terms of Emacs' amazing capabilities. + +=calc-mode= is a calculator system within Emacs that provides an +incredible array of mathematical operations. It uses reverse polish +notation to do calculations (though there is a standard infix +algebraic notation mode) and provides incredible utilities. + +#+begin_src emacs-lisp +(use-package calc + :straight nil + :general + (leader + "ac" #'calc) + :init + (setq calc-algebraic-mode t) + :config + (with-eval-after-load "evil-collection" + (evil-collection-calc-setup))) +#+end_src +*** Calctex +=calc-mode= also has a 3rd party package called =calctex=. It renders +mathematical expressions within calc as if they were rendered in TeX. +You can also copy the expressions in their TeX forms, which is pretty +useful when writing a paper. I've set a very specific lock on this +repository as it's got quite a messy work-tree and this commit seems to +work for me given the various TeX utilities installed via Arch. + +#+begin_src emacs-lisp +(use-package calctex + :after calc + :straight (calctex :type git :host github :repo "johnbcoughlin/calctex") + :hook (calc-mode-hook . calctex-mode)) +#+end_src * Major modes, programming and text Setups for common major modes and languages. ** General Text Configuration |