Mac OS Xで「ispell」を使用するようにEmacsを設定するには?

Mac OS Xで「ispell」を使用するようにEmacsを設定するには?

私はbrewパッケージマネージャとしてEmacsとispellを使います。どちらもインストールしました。 Google をすばやく検索した後でも、imacs に ispell がどこにあるかを知らせる方法や、適切な辞書を読み込む方法はわかりません。

今私がaを実行すると、M-x ispell-check-versionEmacsは自慢して答えますSearching for program: No such file or directory

Emacsどのように機能するように設定しますかispell

ベストアンサー1

探している変数をispell-program-name次の場所に入力してください.emacs

(setq ispell-program-name "/path/to/ispell")

または、M-x set-variable等をご利用ください。

引用:

  • ソースからispell.el

    (defcustom ispell-program-name
      (or (locate-file "aspell"   exec-path exec-suffixes 'file-executable-p)
          (locate-file "ispell"   exec-path exec-suffixes 'file-executable-p)
          (locate-file "hunspell" exec-path exec-suffixes 'file-executable-p)
          "ispell")
      "Program invoked by \\[ispell-word] and \\[ispell-region] commands."
      :type 'string
      :group 'ispell)
    
  • また見なさい:http://emacswiki.org/emacs/InteractiveSpell

Emacs関数が見つからないときはいつでもC-h f(または変数C-h v:)を覚えておいてください。ispellプロンプトに従って入力すると、というメッセージがDescribe function表示され、ispell is an interactive compiled Lisp function in 'ispell.el'.通常はここで必要なものを見つけることができます。

おすすめ記事