Use ggtags to create Imenu index for C++ files.

This commit is contained in:
tastytea 2019-09-20 22:27:04 +02:00
parent 0fbe54f6f1
commit f140502a10
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-09-05T23:17:12+00:00> ;; Time-stamp: <2019-09-20T20:04:35+00:00>
;;; Commentary: ;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with ;; I am using this file with Emacs 26, but most of it will probably work with
@ -348,8 +348,15 @@ With argument, do this that many times."
;; Tries to find points of interest and jumps to them. ;; Tries to find points of interest and jumps to them.
(use-package imenu-anywhere (use-package imenu-anywhere
:after ivy :after ivy
:config
(defun my/imenu-ggtags ()
"Use ggtags to create Imenu index."
(setq-local imenu-create-index-function #'ggtags-build-imenu-index)
)
:bind :bind
("M-i" . ivy-imenu-anywhere) ("M-i" . ivy-imenu-anywhere)
:hook
(c++-mode . my/imenu-ggtags)
) )
(use-package highlight-doxygen (use-package highlight-doxygen

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 10977 127.0.0.1:51313 9170
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh