X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.emacs;h=abf076154e436a72d4540a6c6eef921f2a77cb78;hp=6a74dbed38677c70b59155179652f9db812fdf24;hb=2b5ef98465df8228456af2906bd44d8f2eaabaa8;hpb=2358c129b8e7e1a1e56b0ccf09a2e58c6c0edac7 diff --git a/.emacs b/.emacs index 6a74dbe..abf0761 100644 --- a/.emacs +++ b/.emacs @@ -266,3 +266,15 @@ (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