Support comment-region and friends
authorAdam Chlipala <adamc@hcoop.net>
Sun, 11 Nov 2007 21:23:23 +0000 (21:23 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sun, 11 Nov 2007 21:23:23 +0000 (21:23 +0000)
elisp/domtool-mode.el

index 8e77d7d..039db8d 100644 (file)
          (font-lock-syntactic-keywords
           . domtool-font-lock-syntactic-keywords)
          (font-lock-syntactic-face-function
          (font-lock-syntactic-keywords
           . domtool-font-lock-syntactic-keywords)
          (font-lock-syntactic-face-function
-          . domtool-font-lock-syntactic-face-function))))
+          . domtool-font-lock-syntactic-face-function)))
+  (set (make-local-variable 'indent-line-function) 'sml-indent-line)
+  (set (make-local-variable 'comment-start) "(* ")
+  (set (make-local-variable 'comment-end) " *)")
+  (set (make-local-variable 'comment-nested) t))
 
 (defun domtool-indent-line ()
   (let ((savep (> (current-column) (current-indentation)))
 
 (defun domtool-indent-line ()
   (let ((savep (> (current-column) (current-indentation)))