3
我如何(自動)將字典(例如通過自動調用ispell-change-dictionary
)設置爲特定目錄下每個文件的特定語言?例如:我希望我的標準目錄語言是美式英語(例如,通過在我的.emacs
文件中設置(setq ispell-dictionary "en_US-wo_accents")
),但是我希望對目錄/home/werner/dissertation/
下面(或下面)的所有文件使用英式英語。對於所有/home/werner/letters/
下的文件,可能還有荷蘭文。如何爲特定目錄下的所有文件設置ispell字典
我知道解決方案規定在文件的第一行使用-*- ispell-dictionary: "english" -*-
來設置該特定文件的字典(在EmacsWiki.org處進行了描述)。我想阻止必須將這條線放在我製作的每個新文件之上。
對於目錄局部變量+1。另見http://www.emacswiki.org/emacs/DirectoryVariables – phils