aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-10 00:05:16 +0200
committerAdrian Kummerlaender2020-06-10 00:05:16 +0200
commit3d262f89e04a76a78667a4fc692ae71e540b7566 (patch)
treebeeab8954cda0ed37164dca1744d816ff15b1ece /gui/conf
parent61fd89e65e40a253ff95cfe41696a7ae5836d38a (diff)
downloadnixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.tar
nixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.tar.gz
nixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.tar.bz2
nixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.tar.lz
nixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.tar.xz
nixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.tar.zst
nixos_home-3d262f89e04a76a78667a4fc692ae71e540b7566.zip
Enable inline LaTeX previews in Orgmode
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index dfc886d..a88f253 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -36,6 +36,7 @@
(set-face-attribute 'fixed-pitch nil :family "Iosevka")
(set-face-attribute 'variable-pitch nil :family "Source Sans Pro" :height 1.1)
+(load-library "custom-runtime-env")
(load-library "akr-theme")
(use-package doom-modeline
@@ -93,6 +94,15 @@
(add-hook 'org-mode-hook 'visual-line-mode)
+(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
+(evil-leader/set-key
+ "p" 'org-latex-preview)
+
+(use-package org-fragtog
+ :ensure t
+ :config
+ (add-hook 'org-mode-hook 'org-fragtog-mode))
+
(custom-theme-set-faces
'user
'(org-level-1 ((t (:family "Source Serif Pro" :weight regular :height 1.4 ))))
@@ -172,6 +182,7 @@
'org-babel-load-languages
'((python . t)
(shell . t)
+ (latex . t)
(C . t)))
(setq org-confirm-babel-evaluate nil)