diff options
| author | Dan Nicolaescu | 2011-07-18 10:33:02 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2011-07-18 10:33:02 -0700 |
| commit | 3948a513790ec17f0a94c48cbabf74b4a7b73566 (patch) | |
| tree | 7ac83bdab33f5c257ce369f6ab6fc2500d935c5e | |
| parent | b59b67c56e338162437c045a8a0e2156bcde9a0b (diff) | |
| download | emacs-3948a513790ec17f0a94c48cbabf74b4a7b73566.tar.gz emacs-3948a513790ec17f0a94c48cbabf74b4a7b73566.zip | |
Add an example on how to use prog-mode.
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -1077,6 +1077,11 @@ syntactic rules. | |||
| 1077 | ** Syntax tables support a new "comment style c" additionally to style b. | 1077 | ** Syntax tables support a new "comment style c" additionally to style b. |
| 1078 | ** frame-local variables cannot be let-bound any more. | 1078 | ** frame-local variables cannot be let-bound any more. |
| 1079 | ** prog-mode is a new major-mode meant to be the parent of programming mode. | 1079 | ** prog-mode is a new major-mode meant to be the parent of programming mode. |
| 1080 | The prog-mode-hook it defines can be used to enable features for | ||
| 1081 | programming modes. For example: | ||
| 1082 | (add-hook 'prog-mode-hook 'flyspell-prog-mode) | ||
| 1083 | enables on the fly spell checking for comments and strings for | ||
| 1084 | programming modes. | ||
| 1080 | ** define-minor-mode accepts a new keyword :variable. | 1085 | ** define-minor-mode accepts a new keyword :variable. |
| 1081 | 1086 | ||
| 1082 | ** `delete-file' and `delete-directory' now accept optional arg TRASH. | 1087 | ** `delete-file' and `delete-directory' now accept optional arg TRASH. |