Improve spell-checking

Avoid spell-checking the arguments of
 - eqref
 - cite
 - author
 - address
master
Jacopo De Simoi 8 years ago
parent 9c55e5aa9e
commit 0305f1a067
  1. 14
      init/init-latex.el

@ -17,8 +17,18 @@
(add-hook 'LaTeX-mode-hook 'my-LaTeX-mode-dollars)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
;; * Do not spell-check inside these commands
;; (I should find the reference I used for this snippet)
(setq ispell-tex-skip-alists
(list
(append
(car ispell-tex-skip-alists) ;tell ispell to ignore content of this:
'(("\\\\eqref" ispell-tex-arg-end)
("\\\\cite" ispell-tex-arg-end)
("\\\\author" ispell-tex-arg-end)
("\\\\address" ispell-tex-arg-end)
))
(cadr ispell-tex-skip-alists)))
(defun dabbrev-expand-helper ()
(interactive)

Loading…
Cancel
Save