diff options
Diffstat (limited to 'lisp/progmodes/icon.el')
-rw-r--r-- | lisp/progmodes/icon.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 2a2f5a9dcd4..f64ed19dd37 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el @@ -24,6 +24,8 @@ ;;; Commentary: +;; A major mode for editing the Icon programming language. +;; ;; Note: use ;; (autoload 'icon-mode "icon" nil t) ;; (setq auto-mode-alist (cons '("\\.icn$" . icon-mode) auto-mode-alist)) @@ -146,8 +148,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 'icon-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'icon-comment-indent) (run-hooks 'icon-mode-hook)) ;; This is used by indent-for-comment to decide how much to |