summaryrefslogtreecommitdiff
path: root/lisp/progmodes/awk-mode.el
diff options
context:
space:
mode:
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