Permalink
Browse files

add imenu support

  • Loading branch information...
1 parent 09fd1b8 commit 5d10ecab403e84215935f4613cddfaea6fc6bb5d @bookest committed Dec 20, 2008
Showing with 4 additions and 2 deletions.
  1. +4 −2 arduino-mode.el
View
@@ -32,7 +32,8 @@
(eval-when-compile
(require 'cc-langs)
- (require 'cc-fonts))
+ (require 'cc-fonts)
+ (require 'cc-menus))
(eval-and-compile
;; fall back on c-mode
@@ -107,7 +108,8 @@ Key bindings:
(setq major-mode 'arduino-mode
mode-name "Arduino"
local-abbrev-table arduino-mode-abbrev-table
- abbrev-mode t)
+ abbrev-mode t
+ imenu-generic-expression cc-imenu-c-generic-expression)
(use-local-map c-mode-map)
;; `c-init-language-vars' is a macro that is expanded at compile
;; time to a large `setq' with all the language variables and their

0 comments on commit 5d10eca

Please sign in to comment.