Skip to content

Commit

Permalink
imenu.el integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Antono Vasiljev committed May 23, 2012
1 parent cb63aaa commit 84e7257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Expand Up @@ -13,4 +13,5 @@ Mike Breen
Pat Maddox
Peter Williams
Tero Tilus
Thomas Jack
Thomas Jack
Antono Vasiljev
5 changes: 4 additions & 1 deletion feature-mode.el
Expand Up @@ -329,7 +329,10 @@ back-dent the line by `feature-indent-offset' spaces. On reaching column
(set (make-local-variable 'font-lock-defaults)
(list (feature-font-lock-keywords-for (feature-detect-language)) nil nil))
(set (make-local-variable 'font-lock-keywords)
(feature-font-lock-keywords-for (feature-detect-language))))
(feature-font-lock-keywords-for (feature-detect-language)))
(set (make-local-variable 'imenu-generic-expression)
`(("Scenario:" ,(feature-scenario-name-re (feature-detect-language)) 2)
("Background:" ,(feature-background-re (feature-detect-language)) 1))))

(defun feature-minor-modes ()
"Enable all minor modes for feature mode."
Expand Down

0 comments on commit 84e7257

Please sign in to comment.