From fccbfbd8a54b5f2d5f10061f78265fb7420d5d97 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 9 Jul 2023 15:43:05 -0400 Subject: Prettify `org-mode` a bit and enable use of LaTeX for math formulas --- init.el | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 3578139..a9bc4b3 100644 --- a/init.el +++ b/init.el @@ -816,7 +816,9 @@ org-hide-leading-stars t org-adapt-indentation t org-support-shift-select 'always - org-return-follows-link t) + org-return-follows-link t + org-image-actual-width nil + org-image-max-width 120) (advice-add 'org-refile :after 'org-save-all-org-buffers) :bind ("C-c n l t" . org-toggle-link-display) @@ -844,6 +846,11 @@ :bind ("C-c n l o" . link-hint-open-link)) +;; Render animated GIFs +(use-package org-inline-anim + :straight t + :hook (org-mode . org-inline-anim-mode)) + ;; --------------------------------- ;; `org-roam' @@ -1093,6 +1100,34 @@ ;; (run-with-idle-timer mm/refresh-agenda-time-seconds t 'mm/refresh-agenda-timer-function) +;; --------------------------------- +;; Math notes +;; ---------- +;; I'm studying math, might as well +;; take some notes +;; --------------------------------- + +;; AUCTeX +(use-package tex + :straight auctex + :config + (setq TeX-auto-save t + TeX-parse-self t + org-format-latex-options (plist-put org-format-latex-options + :scale 1.75))) + +;; CDLaTeX +(use-package cdlatex + :straight t + :hook (org-mode . org-cdlatex-mode)) + +;; Automatically toggle LaTeX previews +;; when cursor enters/exits them. +(use-package org-fragtog + :straight t + :hook (org-mode . org-fragtog-mode)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3