commit e9bbc82147421f2e2caf55cf81d0d1d79a85d23b parent 419661211fac616479cffab52a481456bae64868 Author: Vincent Demeester <vincent@sbr.pm> Date: Thu, 25 Jun 2020 06:26:00 +0200 tols/emacs: remove prot/imenu-vertical… … using embark completion instead Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-navigating.el | | | 16 | ++-------------- |
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/tools/emacs/config/config-navigating.el b/tools/emacs/config/config-navigating.el @@ -46,7 +46,7 @@ (setq-default dumb-jump-use-visible-window t dumb-jump-prefer-searcher 'rg)) -(use-package imenu +(use-package :config (setq-default imenu-use-markers t imenu-auto-rescan t @@ -57,24 +57,12 @@ imenu-space-replacement " " imenu-level-separator "/") - (defun prot/imenu-vertical () - "Use a vertical Icomplete layout for `imenu'. -Also configure the value of `orderless-matching-styles' to avoid -aggressive fuzzy-style matching for this particular command." - (interactive) - (let ((orderless-matching-styles ; make sure to check `orderless' - '(orderless-literal - orderless-regexp - orderless-prefixes))) - (icomplete-vertical-do (:height (/ (frame-height) 4)) - (call-interactively 'imenu)))) - :hook ((imenu-after-jump-hook . (lambda () (when (and (eq major-mode 'org-mode) (org-at-heading-p)) (org-show-entry) (org-reveal t))))) - :bind ("C-'" . prot/imenu-vertical)) + :bind ("C-'" . imenu)) (use-package flimenu :config