+Calc configuration +calctex

Setting up hooks and keymaps, as well as radians mode for calc. Calctex
mode makes calc look nicer, some eyecandy
This commit is contained in:
dx
2020-05-14 04:05:16 +01:00
parent 2aa56a1d20
commit fef89fbbf4
2 changed files with 21 additions and 0 deletions

View File

@@ -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

View File

@@ -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.