From: Dan Nicolaescu Date: Mon, 18 Jul 2011 17:33:02 +0000 (-0700) Subject: Add an example on how to use prog-mode. X-Git-Tag: emacs-pretest-24.0.90~104^2~201 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3948a513790ec17f0a94c48cbabf74b4a7b73566;p=emacs.git Add an example on how to use prog-mode. --- diff --git a/etc/NEWS b/etc/NEWS index 278fbea81c1..ffce9da51e4 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1077,6 +1077,11 @@ syntactic rules. ** Syntax tables support a new "comment style c" additionally to style b. ** frame-local variables cannot be let-bound any more. ** prog-mode is a new major-mode meant to be the parent of programming mode. +The prog-mode-hook it defines can be used to enable features for +programming modes. For example: +(add-hook 'prog-mode-hook 'flyspell-prog-mode) +enables on the fly spell checking for comments and strings for +programming modes. ** define-minor-mode accepts a new keyword :variable. ** `delete-file' and `delete-directory' now accept optional arg TRASH.