From fef89fbbf4c0e08a5177fa914b64ca5b41075e99 Mon Sep 17 00:00:00 2001 From: dx Date: Thu, 14 May 2020 04:05:16 +0100 Subject: +Calc configuration +calctex Setting up hooks and keymaps, as well as radians mode for calc. Calctex mode makes calc look nicer, some eyecandy --- Doom/.doom.d/org/config.org | 17 +++++++++++++++++ Doom/.doom.d/org/packages.org | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/Doom/.doom.d/org/config.org b/Doom/.doom.d/org/config.org index 285c9e3..3f1155c 100644 --- a/Doom/.doom.d/org/config.org +++ b/Doom/.doom.d/org/config.org @@ -188,6 +188,23 @@ std::string` which isn't supported in standard doom. So I add support for it. :true "true" :null "nullptr")) #+END_SRC +** Calc +*** Configuration +#+BEGIN_SRC elisp +(use-package! calc + :config + (setq calc-angle-mode 'rad) + (map! + :leader + :desc "Calc" ":" #'calc)) +#+END_SRC +*** Calctex +Added some calc mode config. An incredibly powerful tool. +#+BEGIN_SRC elisp +(use-package calctex + :defer t + :hook 'calc-mode) +#+END_SRC * Language Config Configuration for various languages which I feel can be useful ** C-style languages diff --git a/Doom/.doom.d/org/packages.org b/Doom/.doom.d/org/packages.org index 33e905f..1d73af7 100644 --- a/Doom/.doom.d/org/packages.org +++ b/Doom/.doom.d/org/packages.org @@ -32,6 +32,10 @@ Every now and then I like to use base16 themes, particularly when zen coding. #+BEGIN_SRC elisp (package! base16-theme) #+END_SRC +** calc-tex +#+BEGIN_SRC elisp +(package! calctex :recipe (:host github :repo "https://github.com/johnbcoughlin/calctex")) +#+END_SRC * Org-mode ** Fragtog Fragtog allows for latex segments to be instantly compiled and only when you hover over them will you get the code, similar to prettify-symbols. -- cgit v1.2.3-13-gbd6f