From 42ad5a911134fa63715ae5ec7052f987af559332 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 12 Feb 2024 17:27:17 +0100 Subject: Emacs: AUCTeX: cleveref integration; ispell ignores --- dot.emacs.d/init.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'dot.emacs.d/init.el') diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index c104d79..143cdad 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -250,7 +250,17 @@ (dolist (f '(qsx-enable-TeX-fold-mode turn-on-auto-fill prettify-symbols-mode)) - (add-hook 'TeX-mode-hook f))) + (add-hook 'TeX-mode-hook f)) + (TeX-add-symbols + '("cref" TeX-arg-ref) + '("Cref" TeX-arg-ref) + '("cpageref" TeX-arg-ref) + '("Cpageref" TeX-arg-ref)) + (TeX-ispell-skip-setcar + '(("\\\\[cC]ref" ispell-tex-arg-end 1) + ("\\\\cite" ispell-tex-arg-end) + ("\\\\iac" ispell-tex-arg-end) + ("\\\\\\(text\\)?tt" ispell-tex-arg-end)))) (use-package reftex :if (display-graphic-p) -- cgit v1.2.3