【问题标题】:in Emacs, how to instruct Flyspell to permit certain repeated words?在 Emacs 中,如何指示 Flyspell 允许某些重复的单词?
【发布时间】:2014-06-12 20:44:59
【问题描述】:

在 Emacs 中,我使用 Flyspell 来检查我的拼写。默认情况下,Flyspell 会突出显示重复的单词。

但某些词是故意重复的,例如。 “哈哈。”如何指示 Flyspell 允许重复某些单词?

【问题讨论】:

    标签: emacs flyspell


    【解决方案1】:
    flyspell-mark-duplications-exceptions is a variable defined in `flyspell.el'.
    Its value is ((nil "that" "had") ("\\`francais" "nous" "vous"))
    
    Documentation:
    A list of exceptions for duplicated words.
    It should be a list of (LANGUAGE . EXCEPTION-LIST).
    
    LANGUAGE is nil, which means the exceptions apply regardless of
    the current dictionary, or a regular expression matching the
    dictionary name (`ispell-local-dictionary' or
    `ispell-dictionary') for which the exceptions should apply.
    
    EXCEPTION-LIST is a list of strings.  The checked word is
    downcased before comparing with these exceptions.
    
    You can customize this variable.
    
    This variable was introduced, or its default value was changed, in
    version 24.1 of Emacs.
    

    【讨论】:

      猜你喜欢
      • 2014-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-27
      • 1970-01-01
      相关资源
      最近更新 更多