Move LaTeX mixed pitch code

This commit is contained in:
tecosaur 2020-03-23 11:06:55 +08:00
parent 59256c2a96
commit cb9c4e614c
1 changed files with 5 additions and 4 deletions

View File

@ -1396,10 +1396,6 @@ Syntax highlighting is nice, so let's turn all of that on
(ess-R-fl-keyword:F&T . t)))
#+END_SRC
** LaTeX
Once again, /all hail mixed pitch mode!/
#+BEGIN_SRC emacs-lisp
(add-hook 'LaTeX-mode-hook #'mixed-pitch-mode)
#+END_SRC
*** Snippet value
For use in the new-file template, let's set out a nice preamble we may want to use.
#+NAME: latex-nice-preable
@ -1443,6 +1439,11 @@ Then let's bind the content to a function, and define some nice helpers.
(eq (read-char-choice "Include default preamble? [Type y/n]" '(?y ?n)) ?y)))
#+END_SRC
*** Editor visuals
Once again, /all hail mixed pitch mode!/
#+BEGIN_SRC emacs-lisp
(add-hook 'LaTeX-mode-hook #'mixed-pitch-mode)
#+END_SRC
Let's enhance ~TeX-fold-math~ a bit
#+BEGIN_SRC emacs-lisp
(setq TeX-fold-math-spec-list