summaryrefslogtreecommitdiff
path: root/doc/emacs/fixit.texi
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-05-28 14:22:08 -0400
committerChong Yidong <cyd@stupidchicken.com>2011-05-28 14:22:08 -0400
commitbf41276f9c9a6534a5deb1b44a5d84d9a30ccb4c (patch)
tree84c106bde7aacebe253cdda5324755b274f10c3f /doc/emacs/fixit.texi
parent6a639b16edf80d8255f64e9875eebd6755f32e66 (diff)
downloademacs-bf41276f9c9a6534a5deb1b44a5d84d9a30ccb4c.tar.gz
Document prog-mode-hook in Emacs manual.
* custom.texi (Hooks): Reorganize. Mention Prog mode. * fixit.texi (Spelling): Mention using prog-mode-hook for flypsell prog mode (Bug#8240).
Diffstat (limited to 'doc/emacs/fixit.texi')
-rw-r--r--doc/emacs/fixit.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi
index 0c9cc829fc3..c14041f2271 100644
--- a/doc/emacs/fixit.texi
+++ b/doc/emacs/fixit.texi
@@ -400,17 +400,16 @@ is a spell checking dictionary but no word completion dictionary.
@cindex Flyspell mode
@findex flyspell-mode
+@findex turn-on-flyspell
Flyspell mode is a fully-automatic way to check spelling as you edit
in Emacs. It operates by checking words as you change or insert them.
When it finds a word that it does not recognize, it highlights that
word. This does not interfere with your editing, but when you see the
highlighted word, you can move to it and fix it. Type @kbd{M-x
flyspell-mode} to enable or disable this mode in the current buffer.
-@findex turn-on-flyspell
-To enable @code{flyspell-mode} in all text mode buffers, add
+To enable Flyspell mode in all text mode buffers, add
@code{turn-on-flyspell} to @code{text-mode-hook}.
-
When Flyspell mode highlights a word as misspelled, you can click on
it with @kbd{Mouse-2} to display a menu of possible corrections and
actions. You can also correct the word by editing it manually in any
@@ -421,4 +420,5 @@ way you like.
that it only checks words in comments and string constants. This
feature is useful for editing programs. Type @kbd{M-x
flyspell-prog-mode} to enable or disable this mode in the current
-buffer.
+buffer. To enable this mode in all programming mode buffers, add
+@code{flyspell-prog-mode} to @code{prog-mode-hook} (@pxref{Hooks}).