Last year I wrote about making Company completion popup appear on
There I also briefly mentioned
I have never mentioned
hippie-expand, and that it has been pretty much
covering my completion needs.
However, moving to
Helm prompted me to
helm-dabbrev a try.
helm-dabbrev works similarly to
dabbrev-completion, but when you hit
defaults to 5), it takes you to a Helm buffer with all the benefits that come
Two settings are necessary to have
helm-dabbrev behave like I want to. First,
I turned off Helm’s show completion, a feature which displays candidates in the
current buffer. I don’t like popups, as you may have noticed, and I prefer Helm
to always show candidates in the same position of the screen.
(setq helm-turn-on-show-completion nil)
Then, I made
helm-dabbrev look for completions in all the available buffers.
(setq helm-dabbrev-related-buffer-fn nil)
helm-dabbrev scans buffers with the same major mode as the current
one, but this doesn’t help when, for instance, I am writing a commit message and
I want a symbol to be completed. Binding
helm-dabbrev to C-. is all
that’s left to do.
Since Helm has become a great companion during my Emacs sessions, it makes sense to rely on it for everything concerning completion.
I used to maintain
helm-companybefore discovering Ivy, and now I’m back to it. The Emacs world is full of surprises. ↩