summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs8
1 files changed, 7 insertions, 1 deletions
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