Add imenu index support

pull/7642/head
Yue Zhu 5 years ago committed by Adam Cozzette
parent 2676f4dcc5
commit 582558a589
  1. 6
      editors/protobuf-mode.el

@ -216,7 +216,11 @@ Key bindings:
(c-common-init 'protobuf-mode)
(easy-menu-add protobuf-menu)
(c-run-mode-hooks 'c-mode-common-hook 'protobuf-mode-hook)
(c-update-modeline))
(c-update-modeline)
(setq imenu-generic-expression
'(("Message" "^[[:space:]]*message[[:space:]]+\\([[:alnum:]]+\\)" 1)
("Enum" "^[[:space:]]*enum[[:space:]]+\\([[:alnum:]]+\\)" 1)
("Service" "^[[:space:]]*service[[:space:]]+\\([[:alnum:]]+\\)" 1))))
(provide 'protobuf-mode)

Loading…
Cancel
Save