]> git.donarmstrong.com Git - home-base.git/blobdiff - .emacs
* add flyspell-mode auto-on code
[home-base.git] / .emacs
diff --git a/.emacs b/.emacs
index 6a74dbed38677c70b59155179652f9db812fdf24..abf076154e436a72d4540a6c6eef921f2a77cb78 100644 (file)
--- a/.emacs
+++ b/.emacs
 (setq org-log-done 'time)
 (setq org-log-done 'note)
 (setq org-agenda-ndays 5)
+
+
+(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
+(add-hook 'message-mode-hook 'turn-on-flyspell)
+(add-hook 'text-mode-hook 'turn-on-flyspell)
+(add-hook 'c-mode-common-hook 'flyspell-prog-mode)
+(add-hook 'cperl-mode-hook 'flyspell-prog-mode)
+(add-hook 'tcl-mode-hook 'flyspell-prog-mode)
+(defun turn-on-flyspell ()
+   "Force flyspell-mode on using a positive arg.  For use in hooks."
+   (interactive)
+   (flyspell-mode 1))
\ No newline at end of file