Mercurial > emacs
comparison man/fixit.texi @ 47501:c0b4dc1b7414
Describe Flyspell Prog mode.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 16 Sep 2002 15:18:24 +0000 |
parents | ed736029584b |
children | 23a1cea22d13 |
comparison
equal
deleted
inserted
replaced
47500:864e328bbca7 | 47501:c0b4dc1b7414 |
---|---|
157 @end ifinfo | 157 @end ifinfo |
158 | 158 |
159 @table @kbd | 159 @table @kbd |
160 @item M-x flyspell-mode | 160 @item M-x flyspell-mode |
161 Enable Flyspell mode, which highlights all misspelled words. | 161 Enable Flyspell mode, which highlights all misspelled words. |
162 @item M-x flyspell-progmode | |
163 Enable Flyspell mode for comments and strings only. | |
162 @item M-$ | 164 @item M-$ |
163 Check and correct spelling of the word at point (@code{ispell-word}). | 165 Check and correct spelling of the word at point (@code{ispell-word}). |
164 @item M-@key{TAB} | 166 @item M-@key{TAB} |
165 Complete the word before point based on the spelling dictionary | 167 Complete the word before point based on the spelling dictionary |
166 (@code{ispell-complete-word}). | 168 (@code{ispell-complete-word}). |
191 When Flyspell mode highlights a word as misspelled, you can click on | 193 When Flyspell mode highlights a word as misspelled, you can click on |
192 it with @kbd{Mouse-2} to display a menu of possible corrections and | 194 it with @kbd{Mouse-2} to display a menu of possible corrections and |
193 actions. You can also correct the word by editing it manually in any | 195 actions. You can also correct the word by editing it manually in any |
194 way you like. | 196 way you like. |
195 | 197 |
198 @findex flyspell-prog-mode | |
199 Flyspell Prog mode works just like ordinary Flyspell mode, except that | |
200 it only checks words in comments and string constants. This feature | |
201 is useful for editing programs. Type @kbd{M-x flyspell-prog-mode} to | |
202 enable or disable this mode in the current buffer. | |
203 | |
196 The other Emacs spell-checking features check or look up words when | 204 The other Emacs spell-checking features check or look up words when |
197 you give an explicit command to do so. Checking all or part of the | 205 you give an explicit command to do so. Checking all or part of the |
198 buffer is useful when you have text that was written outside of this | 206 buffer is useful when you have text that was written outside of this |
199 Emacs session and might contain any number of misspellings. | 207 Emacs session and might contain any number of misspellings. |
200 | 208 |