aboutsummaryrefslogtreecommitdiff
path: root/dot.emacs.d/init.el
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:27:17 +0100
committerThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:27:17 +0100
commit42ad5a911134fa63715ae5ec7052f987af559332 (patch)
tree0312bcebf4b5ee9885c0f0de8cdd5f11d70eacea /dot.emacs.d/init.el
parentee0ec70a72cac2a16d2583da7cea28357cdfa14b (diff)
Emacs: AUCTeX: cleveref integration; ispell ignores
Diffstat (limited to 'dot.emacs.d/init.el')
-rw-r--r--dot.emacs.d/init.el12
1 files changed, 11 insertions, 1 deletions
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)