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

Imenu for `RNC-mode'

Expand Messages
  • Tony Graham
    If you are using `rnc--mode by David Rosenborg [1] when editing RNC schemas, you may be interested in adding the following to your .emacs to add a RNC menu
    Message 1 of 2 , Nov 14, 2011
    • 0 Attachment
      If you are using `rnc--mode' by David Rosenborg [1] when editing RNC
      schemas, you may be interested in adding the following to your .emacs to
      add a 'RNC' menu for locating named patterns, etc.

      --------------------------------------------------------
      (require 'rnc-mode)
      (add-hook 'rnc-mode-hook
      (lambda ()
      (set-variable
      'imenu-generic-expression
      (list
      (list nil "^\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\s-*[&|]?=" 1)
      (list "include"
      "^include\\s-+['\"]\\([a-zA-Z][-a-zA-Z0-9._]*\\)['\"]" 1)
      (list "namespace"
      "^\\(default\\s-+\\)?namespace\\s-+\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\s-*="
      2)
      (list "dataypes"
      "^datatypes\\s-+\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\s-*=" 1)))
      (imenu-add-to-menubar "RNC")))
      --------------------------------------------------------

      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


      [1] http://www.pantor.com/download.html
    • Dave Pawson
      ... ! Not seen that, thanks. when editing RNC ... Thanks. Appreciated. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk
      Message 2 of 2 , Nov 14, 2011
      • 0 Attachment
        On 14 November 2011 13:14, Tony Graham <tgraham@...> wrote:
        > If you are using `rnc--mode' by David Rosenborg [1]

        ! Not seen that, thanks.

        when editing RNC
        > schemas, you may be interested in adding the following to your .emacs to
        > add a 'RNC' menu for locating named patterns, etc.

        Thanks. Appreciated.

        regards


        --
        Dave Pawson
        XSLT XSL-FO FAQ.
        Docbook FAQ.
        http://www.dpawson.co.uk
      Your message has been successfully submitted and would be delivered to recipients shortly.