Flymake+Jing for 'RNC-mode'
"Tony Graham" <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
From http://inasmuch.as/2012/02/22/flymake-for-relax-ng-compact-syntax/
(require 'flymake)
(defun flymake-rnc-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "jing" (list "-c" local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'(".+\\.rnc$"
flymake-rnc-init
flymake-simple-cleanup
flymake-get-real-file-name))
(add-hook 'rnc-mode-hook
'flymake-mode)
Regards,
Tony Graham [email protected]
Consultant http://www.mentea.net
Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
XML, XSL-FO and XSLT consulting, training and programming
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/emacs-nxml-mode/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/