From bf41276f9c9a6534a5deb1b44a5d84d9a30ccb4c Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 28 May 2011 14:22:08 -0400 Subject: 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). --- doc/emacs/fixit.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/emacs/fixit.texi') 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}). -- cgit v1.2.1