Use ggtags to create Imenu index for C++ files.
This commit is contained in:
parent
0fbe54f6f1
commit
f140502a10
9
init.el
9
init.el
|
@ -1,5 +1,5 @@
|
|||
;;; 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:
|
||||
;; 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.
|
||||
(use-package imenu-anywhere
|
||||
:after ivy
|
||||
:config
|
||||
(defun my/imenu-ggtags ()
|
||||
"Use ggtags to create Imenu index."
|
||||
(setq-local imenu-create-index-function #'ggtags-build-imenu-index)
|
||||
)
|
||||
:bind
|
||||
("M-i" . ivy-imenu-anywhere)
|
||||
:hook
|
||||
(c++-mode . my/imenu-ggtags)
|
||||
)
|
||||
|
||||
(use-package highlight-doxygen
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
127.0.0.1:51313 10977
|
||||
127.0.0.1:51313 9170
|
||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user