From: Adam Chlipala Date: Mon, 12 Nov 2007 23:35:05 +0000 (+0000) Subject: Add compile-command X-Git-Tag: release_2010-11-19~152 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/25aba3aecb9752860df4aedf43b217d73fe8c072?hp=6b71895409837ee7ebea2a66f62d98dbee8b97e7;ds=sidebyside Add compile-command --- diff --git a/elisp/domtool-mode.el b/elisp/domtool-mode.el index 4b23e76..1e6959d 100644 --- a/elisp/domtool-mode.el +++ b/elisp/domtool-mode.el @@ -85,7 +85,10 @@ . 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)))