Arthur
Arthur

Reputation: 117

Use aspell in emacs for editing HTML pages

I am using the ispell-buffer command in emacs (with aspell as the backend spell checker) to check for typos in the content of HTML pages, but aspell complains at every HTML tag. Is there any way to configure it to ignore HTML tags?

Thanks in advance.

Upvotes: 3

Views: 160

Answers (1)

grettke
grettke

Reputation: 1417

(defun my-web-mode-hook ()
  (setq ispell-skip-html t))

(add-hook 'web-mode-hook #'my-web-mode-hook)

Upvotes: 1

Related Questions