imenu integration has been added

This commit is contained in:
Sameer Rahmani 2018-04-26 19:51:58 +01:00
parent 925826f15b
commit 4e2460393a
2 changed files with 26 additions and 2 deletions

View File

@ -48,6 +48,11 @@
(depends-on 'eshell-prompt-extras)
(depends-on 'shell-pop))
(with-ability imenu
(depends-on 'imenu)
(depends-on 'imenu-list)
(depends-on 'imenu-anywhere))
;; TODO: Add flycheck-color-modebar
;; TODO Add flycheck-tip

View File

@ -73,6 +73,25 @@
(bm-buffer-save-all)
(bm-repository-save))))
(ability imenu ()
"IMenu integration for FG42"
(require 'imenu)
(require 'imenu-list)
(cheatsheet-add :group '--Development--
:key "C-'"
:description "Toggle IMenu list which shows the symbol definitions based on major mode.")
(cheatsheet-add :group '--Development--
:key "C-."
:description "Search for the definition of the symbol you want anywhere.")
;; (imenu-list-minor-mode)
(setq imenu-list-focus-after-activation t)
(setq imenu-list-auto-resize t)
(global-set-key (kbd "C-'") #'imenu-list-smart-toggle)
(global-set-key (kbd "C-.") #'imenu-anywhere))
(ability parinfer ()
(add-hook 'emacs-lisp-mode-hook #'parinfer-mode))