forked from FG42/FG42
imenu integration has been added
This commit is contained in:
parent
925826f15b
commit
4e2460393a
|
@ -48,6 +48,11 @@
|
||||||
(depends-on 'eshell-prompt-extras)
|
(depends-on 'eshell-prompt-extras)
|
||||||
(depends-on 'shell-pop))
|
(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-color-modebar
|
||||||
;; TODO Add flycheck-tip
|
;; TODO Add flycheck-tip
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,25 @@
|
||||||
(bm-buffer-save-all)
|
(bm-buffer-save-all)
|
||||||
(bm-repository-save))))
|
(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 ()
|
(ability parinfer ()
|
||||||
(add-hook 'emacs-lisp-mode-hook #'parinfer-mode))
|
(add-hook 'emacs-lisp-mode-hook #'parinfer-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue