branch: externals/auctex
commit 1b71eb6142fe5dad11f2b59d7cc7daa020bc0e1c
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Add short verb characters to `ispell-tex-skip-alist'
* style/shortvrb.el ("shortvrb"): Add entries in
`LaTeX-shortvrb-chars to `ispell-tex-skip-alist' in order to skip
verbatim content during spell checking.
---
style/shortvrb.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/style/shortvrb.el b/style/shortvrb.el
index a8cf2a1..932df29 100644
--- a/style/shortvrb.el
+++ b/style/shortvrb.el
@@ -49,6 +49,15 @@
(TeX-add-style-hook
"shortvrb"
(lambda ()
+
+ ;; Ispell: Add entries to `ispell-tex-skip-alist':
+ (when LaTeX-shortvrb-chars
+ (TeX-ispell-skip-setcar
+ (mapcar (lambda (char)
+ (let ((str (char-to-string char)))
+ (cons str str)))
+ LaTeX-shortvrb-chars)))
+
;; Fontification
(when (and LaTeX-shortvrb-chars
(featurep 'font-latex)