aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2011-07-18 10:33:02 -0700
committerDan Nicolaescu2011-07-18 10:33:02 -0700
commit3948a513790ec17f0a94c48cbabf74b4a7b73566 (patch)
tree7ac83bdab33f5c257ce369f6ab6fc2500d935c5e
parentb59b67c56e338162437c045a8a0e2156bcde9a0b (diff)
downloademacs-3948a513790ec17f0a94c48cbabf74b4a7b73566.tar.gz
emacs-3948a513790ec17f0a94c48cbabf74b4a7b73566.zip
Add an example on how to use prog-mode.
-rw-r--r--etc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 278fbea81c1..ffce9da51e4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
1080The prog-mode-hook it defines can be used to enable features for
1081programming modes. For example:
1082(add-hook 'prog-mode-hook 'flyspell-prog-mode)
1083enables on the fly spell checking for comments and strings for
1084programming 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.