Split imenu and imenu-anywhere into separate packages.

This commit is contained in:
tastytea 2019-11-09 21:55:09 +01:00
parent c04d8e6911
commit 148eb7403a

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-09T18:03:31+00:00>
;; Time-stamp: <2019-11-09T18:48:38+00:00>
;;; Commentary:
@ -192,13 +192,21 @@
(prog-mode . hl-indent-mode)
)
;; Tries to find points of interest and jumps to them.
(use-package imenu-anywhere
:after (ivy)
;; Tries to find points of interest in buffer and jumps to them.
(use-package imenu
:custom
(imenu-auto-rescan t)
:bind
("M-i" . imenu) ; Current buffer.
("C-M-i" . ivy-imenu-anywhere) ; All open buffers.
("M-i" . imenu)
)
;; Tries to find points of interest in all open buffers and jumps to them.
(use-package imenu-anywhere
:after (imenu ivy)
:bind
("C-M-i" . ivy-imenu-anywhere)
)
;; Jump to definition using grep.