I would like to search for certain doxygen like pattern in my files and then add corresponding entries to a speedbar for easy browsing. Some of these entries I want to have colored in red.
I figured out that I can use imenu-generic-expression to easily add entries to my speedbar:
(require 'speedbar) (speedbar-add-supported-extension ".foo") (add-hook 'foo-mode-hook (lambda () (setq imenu-generic-expression '(("BARS" "@bar\\s-+\\(.*\\)" 1) ("FOOS" "@foo\\s-+\\(.*\\)" 1))) ; no auto-grouping (setq speedbar-tag-hierarchy-method nil) (imenu-add-to-menubar "FOO")))
But how can I get the colors?