Commit e9bbc8214742

Vincent Demeester <vincent@sbr.pm>
2020-06-25 06:26:00
tols/emacs: remove prot/imenu-vertical…
… using embark completion instead Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 4196612
Changed files (1)
tools
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