Loading ...
Sorry, an error occurred while loading the content.

Flymake+Jing for 'RNC-mode'

Expand Messages
  • Tony Graham
    From http://inasmuch.as/2012/02/22/flymake-for-relax-ng-compact-syntax/ (require flymake) (defun flymake-rnc-init () (let* ((temp-file
    Message 1 of 1 , Feb 22, 2012
    • 0 Attachment
      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 tgraham@...
      Consultant http://www.mentea.net
      Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
      XML, XSL-FO and XSLT consulting, training and programming
    Your message has been successfully submitted and would be delivered to recipients shortly.