6f2e2df275
imenu-list provides a side bar that shows all imenu entries of the current buffer
33 lines
1 KiB
EmacsLisp
33 lines
1 KiB
EmacsLisp
;;; packages.el --- imenu-list Layer packages File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
;; List of all packages to install and/or initialize. Built-in packages
|
|
;; which require an initialization must be listed explicitly in the list.
|
|
(setq imenu-list-packages '(imenu-list))
|
|
|
|
;; List of packages to exclude.
|
|
(setq imenu-list-excluded-packages '())
|
|
|
|
(defun imenu-list/init-imenu-list ()
|
|
(use-package imenu-list
|
|
:defer t
|
|
:init
|
|
(progn
|
|
(setq imenu-list-focus-after-activation t
|
|
imenu-list-auto-resize t)
|
|
(spacemacs/set-leader-keys "bi" #'imenu-list-minor-mode))
|
|
:config
|
|
(evilified-state-evilify-map imenu-list-major-mode-map
|
|
:mode imenu-list-major-mode
|
|
:bindings
|
|
"d" #'imenu-list-display-entry
|
|
"q" #'imenu-list-minor-mode)))
|