Flyspell regularly shows
pandoc citations as a spelling error in
markdown documents. For example
@chu2017 will come up as a spelling error for 'chu'.
How can I get
Flyspell ignore the citations and only check other words in the document?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
Try adding the following to your
(add-hook 'markdown-mode-hook '(lambda () (setq flyspell-generic-check-word-predicate 'my-pandoc-flyspell-verify))) (defun my-pandoc-flyspell-verify () (save-excursion (forward-word -1) (not (looking-back "@"))))
Essentially, it is telling
flyspell not to check words that start with "@".