NTEmacs: ispell その 22007/03/02 14:45

NTEmacs は情報が少ない。 ためしに "NTEmacs ispell" でググってみると... さて。ispell を NTEmacs に使うには、(ひとつ前に設定はいらないと書いたけれど...) .emacs に次の設定をする。

;;
;; ispell
;;
(autoload 'ispell-word "ispell" "Check the spelling of word in buffer." t)
(autoload 'ispell-region "ispell" "Check the spelling of region." t)
(autoload 'ispell-buffer "ispell" "Check the spelling of buffer." t)
(autoload 'ispell-complete-word
    "ispell" "Look up current word in dictionary and try to complete it." t)
(autoload 'ispell-change-dictionary "ispell" "Change ispell dictionary." t)
(autoload 'ispell-message "ispell" "Check spelling of mail message or newsx post.")
(defun ispell-tex-buffer-p ()
  (memq major-mode '(plain-tex-mode latex-mode slitex-mode yatex-mode)))
(setq ispell-enable-tex-parser t)

;; 日本語部分をスキップする
(eval-after-load "ispell"
  '(add-to-list 'ispell-skip-region-alist '("[^\000-\377]+")))

最近の cygwin は ispell ではなく aspell が入っているようなので、次のようにしておく。

(setq-default ispell-program-name "aspell")

コメント

トラックバック