From 89469b8be78c35bbe325ecb488b1c72f988ed52a Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 16 May 2021 12:44:55 +0800 Subject: Fixes some errors in loading TeX --- tex-conf.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tex-conf.el b/tex-conf.el index fdd93af..572df6a 100644 --- a/tex-conf.el +++ b/tex-conf.el @@ -25,6 +25,7 @@ ;;; Code: +(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/") (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) @@ -77,12 +78,19 @@ ;;; Section display +(load "/usr/local/share/emacs/site-lisp/auctex/font-latex.el" nil t) + (setq font-latex-fontify-sectioning 1.3) -;;; Dollars +;;; Add a font macro command (load "/usr/local/share/emacs/site-lisp/auctex/latex.el" nil t) +(add-to-list 'LaTeX-font-list + '(?\C-k "" "" "\\mathfrak{" "}")) + +;;; Dollars + (setq TeX-electric-math (cons "\\(" "\\)")) (define-key LaTeX-mode-map (vector ?\ยง) #'durand-insert-escape) -- cgit v1.2.3-18-g5258