``` refactor(tex,completion,edit): Reorganize LaTeX configuration

and cleanup

- Require init-tex module in main init.el Change marginalia
- initialization from hook to immediate mode activation Enable
- yasnippet globally in init-edit Remove unused init-snippet.el
- module Simplify init-tex.el by removing redundant
- cdlatex-yasnippet integration Add lexical binding and proper
- package demand configuration for AuCTeX Clean up commented code in
- init-org.el ```
This commit is contained in:
Zelong Kuang
2025-12-14 19:27:57 +11:00
parent 9e7872b4aa
commit 8b88b04c1b
7 changed files with 19 additions and 63 deletions

View File

@@ -68,28 +68,14 @@
;; Increase preview width
(plist-put org-latex-preview-appearance-options
:page-width 0.8)
;; ;; Use dvisvgm to generate previews
;; ;; You don't need this, it's the default:
;; (setq org-latex-preview-process-default 'dvisvgm)
;; Turn on `org-latex-preview-mode', it's built into Org and much faster/more
;; featured than org-fragtog. (Remember to turn off/uninstall org-fragtog.)
;; ;; Block C-n, C-p etc from opening up previews when using `org-latex-preview-mode'
;; (setq org-latex-preview-mode-ignored-commands
;; '(next-line previous-line mwheel-scroll
;; scroll-up-command scroll-down-command))
;; ;; Enable consistent equation numbering
(setq org-latex-preview-numbered t)
;; Bonus: Turn on live previews. This shows you a live preview of a LaTeX
;; fragment and updates the preview in real-time as you edit it.
;; To preview only environments, set it to '(block edit-special) instead
(setq org-latex-preview-mode-display-live t)
;; More immediate live-previews -- the default delay is 1 second
(setq org-latex-preview-mode-update-delay 0.25))
(use-package org-roam