emacs 2025-07-03

helm is hanging a lot for me recently, how do people go about fixing these issues? Switching away from helm seems like overkill, though I do feel like at this point it should be searching using something more powerful then it is (not quite a full LLM but maybe?). Of course if my issue is it hanging, using a power flexibility search is probably the wrong direction lol

I'd recommend just ripping off the band-aid and switching. consult and vertico are really good and fast, I would recommend the combo over ivy, a "helm replacement" that has already become out of date. there's a lot less machinery to replace with consult because it's more integrated with emacs' defaults so a bunch of built-in functions are "consult ready" for free; you don't have to write a specialized "consult-clojure" package the way that helm has a bunch of subpackages for every other mode. other search backends are much easier to integrate with vertico/consult, as far as I understand it https://www.reddit.com/r/emacs/comments/qfrxgb/comment/hi6mfh7/?context=1

Thanks for the suggestion. Changing anything in my default spacemacs setup is always a huge ask because i feel like the entire thing is a house of cards that's set to tumble at any moment. The dread that i might spend two days fixing my emacs while at the same time a 18 year old vibe codes a new stock trading platform to the tunes of millions of dollars gives me anxiety.

How is it different from helm?

I'm not even sure i understand helm honestly...

Yeah, it's what helps me find files and functions. I feel like I'm fairly mentally coupled to it lol.

Profiling Emacs is a common way to identify slow running commands https://practical.li/spacemacs/install-spacemacs/troubleshooting/#profiling-emacs

👍 1

I have used Helm (Spacemacs) and Vertico (Doom Emacs) and it did take a couple of days to get used to the differences (key bindings are different between Spacemacs & Doom and features are different/missing or not found).

To try vertico with Spacemacs (it already uses consult) then add the Complesus layer https://www.spacemacs.org/layers/+completion/compleseus/README.html Note: I haven't tried this myself as helm has been fine for me

Thanks @hkjels i'll give that a try at some point. And thanks @jr0cket for the info.

I'm using Complesus layer with Spacemacs, it works fine imo. Although I haven't spend a lot of time with helm and switched to Complesus after 2 days of Spacemacs usage, so I don't know the difference

👍 1

I've always used Spacemacs with Ivy, because helm was too slow

As long as you're on a fairly recent build of Emacs, you have icomplete-vertical-mode available. Pretty much the same as vertico, just built-in.

(use-package completion-preview
  :blackout t
  :hook (prog-mode . completion-preview-mode)
  :bind (:map completion-preview-active-mode-map
              ([remap forward-word] . completion-preview-insert-word)
              ([remap forward-sexp] . completion-preview-insert-sexp)))

(use-package corfu
  :bind (:map corfu-map ("SPC" . corfu-insert-separator))
  :config
  (setq-default corfu-auto t
                corfu-auto-delay 0.0
                corfu-auto-prefix 2
                corfu-quit-at-boundary 'separator
                corfu-preselect-first nil
                corfu-quit-no-match t)
  (global-corfu-mode 1)
  (corfu-history-mode 1))

(use-package cape
  :config
  (setq cape-dabbrev-min-length 2)
  (add-to-list 'completion-at-point-functions #'cape-file)
  (add-to-list 'completion-at-point-functions #'cape-abbrev)
  (add-to-list 'completion-at-point-functions #'cape-dabbrev))

(use-package icomplete
  :bind (:map icomplete-minibuffer-map
              ("" . icomplete-force-complete))
  :config
  (defun fussy-fido-setup ()
    "Use `fussy' with `fido-mode'."
    (setq-local completion-styles '(fussy basic)))
  (advice-add 'icomplete--fido-mode-setup :after 'fussy-fido-setup)
  (setq icomplete-tidy-shadowed-file-names t
        icomplete-show-matches-on-no-input t
        icomplete-compute-delay 0
        icomplete-delay-completions-threshold 0
        icomplete-prospects-height 10)
  (icomplete-vertical-mode 1))

(use-package fussy
  :config
  (advice-add 'corfu--capf-wrapper :before 'fussy-wipe-cache)
  (push 'fussy completion-styles)
  (setq completion-category-defaults nil
        completion-category-overrides nil
        fussy-max-candidate-limit 5000
        fussy-default-regex-fn 'fussy-pattern-first-letter
        fussy-filter-fn 'fussy-filter-orderless-flex
        fussy-prefer-prefix nil))

(use-package orderless
  :defer
  :after (fussy)
  :commands (orderless-filter)
  :config (setq completion-styles '(basic fussy orderless)))

(setq completion-category-overrides '((file (styles basic substring)))
      ;; Only show relevant items for the current context
      read-extended-command-predicate #'command-completion-default-include-p)

(use-package consult
  :defer t
  :commands (consult-buffer consult-goto-line consult-imenu)
  :bind (([remap switch-to-buffer] . consult-buffer)
         ([remap goto-line] . consult-goto-line)
         ([remap imenu] . consult-imenu)))

(use-package embark-consult
  :after (embark consult)
  :hook (embark-collect-mode . consult-preview-at-point-mode))

👀 1

Here's an extract from my config on the matter