【问题标题】:Use aspell in emacs for editing HTML pages在 emacs 中使用 aspell 来编辑 HTML 页面
【发布时间】:2018-02-05 23:56:12
【问题描述】:

我在 emacs 中使用 ispell-buffer 命令(使用 aspell 作为后端拼写检查器)来检查 HTML 页面内容中的拼写错误,但 aspell 在每个 HTML 标记处都会报错。有什么办法可以将其配置为忽略 HTML 标签?

提前致谢。

【问题讨论】:

  • flyspell-prog-mode 通过仅查看字符串和 cmets 来处理编程模式。也许可以对其进行调整以仅查看 HTML 内容而不查看标签。

标签: html emacs aspell ispell


【解决方案1】:
(defun my-web-mode-hook ()
  (setq ispell-skip-html t))

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-19
    • 1970-01-01
    相关资源
    最近更新 更多