From 78a68e3dc8803ba1bf2bf87f4b3cad14c647a7f0 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 13 Jan 2010 17:28:15 +0100 Subject: flyspell enhancements --- emacs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs b/emacs index d1dc83b..064817a 100644 --- a/emacs +++ b/emacs @@ -297,7 +297,10 @@ (if (or (eq major-mode 'c-mode) (eq major-mode 'c++-mode)) (doxymacs-font-lock)))) -;; flyspell +;; flyspell (with aspell for Unicode) +(setq ispell-program-name "aspell") +(setq ispell-extra-args '("--sug-mode=ultra")) + (add-hook 'c-mode-hook 'flyspell-prog-mode) (add-hook 'sh-mode-hook 'flyspell-prog-mode) (add-hook 'c++-mode-hook 'flyspell-prog-mode) @@ -347,6 +350,9 @@ (defadvice ispell-word (after advice) (flyspell-buffer)) (ad-activate 'ispell-word t) +(defadvice ispell-pdict-save (after advice) + (flyspell-buffer)) +(ad-activate 'ispell-pdict-save t) ; byte-compile .emacs (defun autocompile nil -- cgit v1.2.3