summaryrefslogtreecommitdiff
path: root/lisp/progmodes/awk-mode.el
diff options
context:
space:
mode:
authorEric S. Raymond <esr@snark.thyrsus.com>1993-03-22 03:27:18 +0000
committerEric S. Raymond <esr@snark.thyrsus.com>1993-03-22 03:27:18 +0000
commite41b2db1da153e3ead4a01cb6e729cb99cad78ae (patch)
treeb1a9c9c673da674b66521088f3247ac5a34f5a02 /lisp/progmodes/awk-mode.el
parent33d92c1f9de704cda9309731b4d6add46178aafc (diff)
Added or corrected Commentary sections
Diffstat (limited to 'lisp/progmodes/awk-mode.el')
-rw-r--r--lisp/progmodes/awk-mode.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/awk-mode.el b/lisp/progmodes/awk-mode.el
index b4ec8ddfb0e..40300e9bc22 100644
--- a/lisp/progmodes/awk-mode.el
+++ b/lisp/progmodes/awk-mode.el
@@ -21,6 +21,11 @@
;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;;; Commentary:
+
+;; Sets up C-mode with support for awk-style #-comments and a lightly
+;; hacked syntax table.
+
;;; Code:
(defvar awk-mode-syntax-table nil
@@ -83,8 +88,8 @@ with no args, if that value is non-nil."
(setq comment-column 32)
(make-local-variable 'comment-start-skip)
(setq comment-start-skip "#+ *")
- (make-local-variable 'comment-indent-hook)
- (setq comment-indent-hook 'c-comment-indent)
+ (make-local-variable 'comment-indent-function)
+ (setq comment-indent-function 'c-comment-indent)
(run-hooks 'awk-mode-hook))
;;; awk-mode.el ends here