This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/imenu-list/packages.el
bmag 6f2e2df275 Add imenu-list layer
imenu-list provides a side bar that shows all imenu entries of the
current buffer
2016-04-08 18:09:52 -04:00

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)))