Preview LaTeX when opening org files + misc changes
This commit is contained in:
parent
cafe0329a6
commit
6579a7f94a
1 changed files with 5 additions and 4 deletions
9
init.el
9
init.el
|
@ -324,8 +324,7 @@
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:commands lsp
|
:commands lsp
|
||||||
:straight t
|
:straight t
|
||||||
:hook ((rust-mode . lsp)
|
:hook ((c-mode . lsp)
|
||||||
(c-mode . lsp)
|
|
||||||
(python-mode . lsp))
|
(python-mode . lsp))
|
||||||
:custom
|
:custom
|
||||||
(lsp-clients-clangd-args '("-j=2"
|
(lsp-clients-clangd-args '("-j=2"
|
||||||
|
@ -373,7 +372,7 @@
|
||||||
:straight t
|
:straight t
|
||||||
:hook (python-mode . (lambda ()
|
:hook (python-mode . (lambda ()
|
||||||
(require 'lsp-pyright)
|
(require 'lsp-pyright)
|
||||||
(lsp) ; or lsp-deferred
|
(lsp) ; or lsp-deferred
|
||||||
(local-unset-key (kbd "C-f")))))
|
(local-unset-key (kbd "C-f")))))
|
||||||
|
|
||||||
(use-package pyvenv
|
(use-package pyvenv
|
||||||
|
@ -756,7 +755,9 @@
|
||||||
|
|
||||||
(setq org-src-preserve-indentation nil
|
(setq org-src-preserve-indentation nil
|
||||||
org-edit-src-content-indentation 0)
|
org-edit-src-content-indentation 0)
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1))
|
(setq
|
||||||
|
org-startup-with-latex-preview t
|
||||||
|
org-format-latex-options (plist-put org-format-latex-options :scale 1))
|
||||||
|
|
||||||
(require 'ox-latex)
|
(require 'ox-latex)
|
||||||
(add-to-list 'org-latex-classes
|
(add-to-list 'org-latex-classes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue