summaryrefslogtreecommitdiff
path: root/tex-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-05-16 12:44:55 +0800
committerJSDurand <mmemmew@gmail.com>2021-05-16 12:44:55 +0800
commit89469b8be78c35bbe325ecb488b1c72f988ed52a (patch)
tree9d55365fb347b9e8b17aeb06a264b234b6406105 /tex-conf.el
parent51b69c4221e14d3a9e4371e5ae4516e50104e98e (diff)
Fixes some errors in loading TeX
Diffstat (limited to 'tex-conf.el')
-rw-r--r--tex-conf.el10
1 files changed, 9 insertions, 1 deletions
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)