]> git.rkrishnan.org Git - .emacs.d.git/commitdiff
spell checking
authorRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Thu, 8 Aug 2013 12:59:21 +0000 (18:29 +0530)
committerRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Thu, 8 Aug 2013 12:59:21 +0000 (18:29 +0530)
init.el

diff --git a/init.el b/init.el
index 0fdc0676c9df8216119f6476bd9d5022fdaf738e..10c1ebd01c4ec2ec0142f94704549dd4a80dfe6d 100644 (file)
--- a/init.el
+++ b/init.el
       '((font . "Menlo-13")
         (width . 80)))
 
+;; spell check
+(setq ispell-program-name "aspell"
+  ispell-extra-args '("--sug-mode=ultra"))
+
+(setq ispell-list-command "--list")
+
+(dolist (hook '(text-mode-hook))
+  (add-hook hook (lambda () (flyspell-mode 1))))
+(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
+  (add-hook hook (lambda () (flyspell-mode -1))))