I thought to add imenu support for muse mode -- mostly because ECB can use it,
which I though would be nice. 

This is my very initial attempt -- really simple. I think that anchors and
sections are all you want (all I want anyway!).

At the moment, anchors erroneously identifies directives as well, but this can
be fixed; I'll probably have a category for them as well. 

The hook function really needs to go into muse-mode -- no point calling it on
a hook. 

Comments welcome!

Phil


(add-hook 'muse-mode-hook 
          'muse-prepare-imenu)

(defun muse-prepare-imenu()
  (setq imenu-generic-expression muse-imenu-generic-expression))

(defvar muse-imenu-generic-expression
  '(
    ;;sections
    (nil  "^\\(\\*+ .+\\)" 1)
    ("Anchors"      "^\\(\\#.+\\)" 1))
  "Add support for imenu in muse. 

See `imenu-generic-expression' for details")

_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss

Reply via email to