emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/arduino-mode 5d10eca 002/107: add imenu support


From: ELPA Syncer
Subject: [nongnu] elpa/arduino-mode 5d10eca 002/107: add imenu support
Date: Sun, 29 Aug 2021 10:58:05 -0400 (EDT)

branch: elpa/arduino-mode
commit 5d10ecab403e84215935f4613cddfaea6fc6bb5d
Author: Christopher Grim <christopher.grim@gmail.com>
Commit: Christopher Grim <christopher.grim@gmail.com>

    add imenu support
---
 arduino-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arduino-mode.el b/arduino-mode.el
index 10bc196..b71a610 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]