branch: externals/auctex commit 80d2a087963676fd98683ab04dfd685e5b91ff81 Author: Mosè Giordano <m...@gnu.org> Commit: Mosè Giordano <m...@gnu.org>
Min fix to kpfonts package * style/kpfonts.el ("kpfonts"): Move setting of `TeX-font-list' inside the hook. --- style/kpfonts.el | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/style/kpfonts.el b/style/kpfonts.el index 026c81f..78bc9ab 100644 --- a/style/kpfonts.el +++ b/style/kpfonts.el @@ -515,19 +515,6 @@ following commands are defined: (LaTeX-kpfonts-mode)) ;;; Kpfonts Minor Mode ends here -;; New fonts by `kpfonts'. -(setq TeX-font-list - (append - TeX-font-list - '(;; Math fonts - (?\C-h "" "" "\\mathup{" "}") - (?\C-k "" "" "\\mathfrak{" "}") - (?\C-p "" "" "\\mathscr{" "}") - ;; Text fonts - (?\C-l "\\textscsl{" "}") - (?\C-o "\\textothersc{" "}") - (?\C-q "\\textotherscsl{" "}")))) - (TeX-add-style-hook "kpfonts" (lambda () @@ -554,6 +541,19 @@ following commands are defined: '("wideparen" 1) '("widering" 1)) + ;; New fonts by `kpfonts'. + (setq TeX-font-list + (append + TeX-font-list + '(;; Math fonts + (?\C-h "" "" "\\mathup{" "}") + (?\C-k "" "" "\\mathfrak{" "}") + (?\C-p "" "" "\\mathscr{" "}") + ;; Text fonts + (?\C-l "\\textscsl{" "}") + (?\C-o "\\textothersc{" "}") + (?\C-q "\\textotherscsl{" "}")))) + ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup))