help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: turn on flyspell mode permanently in .emacs


From: Noah Slater
Subject: Re: turn on flyspell mode permanently in .emacs
Date: Tue, 22 Aug 2006 23:13:28 +0100

Here are some samples from my site-start.el which may help you:

(defun activate-flyspell ()
 "Turn on flyspell-mode and call flyspell-buffer."
 (interactive)
 ;; This next line REALLY slows buffer switching.
 (flyspell-mode)
 (flyspell-buffer))

(defvar customised-hooks-alist
 '(emacs-lisp-mode-hook
   nxml-mode-hook
   python-mode-hook
   sh-mode-hook
   text-mode-hook)
 "An alist of hooks that require customisations.")

(unless noninteractive
 ;; Activate flyspell for various major modes.
 (add-hook-list customised-hooks-alist 'activate-flyspell))

--
"Creativity can be a social contribution, but only in so
far as society is free to use the results." - R. Stallman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]