Bozhidar Batsov
Bozhidar Batsov
Btw, I remembered that we addressed this a certain extent in https://github.com/clojure-emacs/cider/pull/2586
I guess I was confused by this sentence: > Completion will start automatically after you type a few letters. Use M-n, M-p, > and to complete. Sounded to me that...
That makes sense, too, which brings me to another question. Can `company-mode` be used as a replacement for `completion-at-point`? That way one wouldn't have to rely on a time trigger...
Well, this was the source of my initial confusion I guess - I was under the impression that `company-capf` is enabled out-of-the-box on Emacs 24.4 or newer (which I using),...
Ah, I see - I interpreted the name as `completion-at-point-function` and decided this offers a replacement for `completion-at-point`, which is invoked in `indent-for-tab-command`. Looking at `completion-at-point`'s source code it seems...
I guess this is one candidate from improvement in 24.5. :-) I think that a lot of people would appreciate the option to plug something like company or ac directly...
One more thing - it might make sense to alter the behaviour of tab depending on whether something is selected or not. Seems reasonable to that `Tab` should behave like...
Such a function sounds exactly like what I have in mind. I'll start studying company's codebase and I'll hopefully cook something useful.
Btw, I've renamed the ticket to actually reflect the discussion so far.
@tungd Seems to me your code will override the actual `completion-at-point-functions` that `company-capf` is supposed to use, so I'm not sure how this is working at all for you (unless...