summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-13 17:28:15 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2010-01-13 17:28:15 +0100
commit78a68e3dc8803ba1bf2bf87f4b3cad14c647a7f0 (patch)
treec4c570c93d9ce8dc43c0da6ab7d92088ec27c80b /emacs
parentd573b7413e267aae0c32e083cec45d583ccf0562 (diff)
downloaddotfiles-78a68e3dc8803ba1bf2bf87f4b3cad14c647a7f0.tar.gz
dotfiles-78a68e3dc8803ba1bf2bf87f4b3cad14c647a7f0.tar.xz
dotfiles-78a68e3dc8803ba1bf2bf87f4b3cad14c647a7f0.zip
flyspell enhancements
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