Add compile-command
authoradamch <adamch>
Mon, 12 Nov 2007 23:35:05 +0000 (23:35 +0000)
committeradamch <adamch>
Mon, 12 Nov 2007 23:35:05 +0000 (23:35 +0000)
elisp/domtool-mode.el

index 4b23e76..1e6959d 100644 (file)
           . domtool-font-lock-syntactic-face-function)))
   (set (make-local-variable 'comment-start) "(* ")
   (set (make-local-variable 'comment-end) " *)")
-  (set (make-local-variable 'comment-nested) t))
+  (set (make-local-variable 'comment-nested) t)
+
+  (set (make-local-variable 'compile-command)
+       (concat "domtool -tc " (file-relative-name buffer-file-name))))
 
 (defun domtool-indent-line ()
   (let ((savep (> (current-column) (current-indentation)))