Closed yszhang95 closed 2 years ago
M-/
key is usually binding to M-x hippie-expand
which has nothing to do with company-mode
I'm not sure how you setup company-mode
. company-ctags-auto-setup
just sets up company-backends
. As I can see, it works.
If company-backends
values is '(a b (c d) e)
, the backend "a" is run first, if it returns zero candidate, "b" will run. If "b" also returns zero candidate, both the "c" and "d" in next sub-group will run, and their cominbined candidates are returned. If that's also zero, the backend "e" will run.
It's all documented in `company-mode manual, please read it. It was updated recently.
It's a shame most online tutorials don't teach how to set up company-backends
.
Thank you so much for the prompt reply!
I run C-h k M-/
and it returns that this key binding is bound to company-complete
.
I will read the online doc for company-mode
. Sorry for this naive question.
Let me close this issue since it cannot be reproduced. And I will report back after I figured out why I failed using the default setup provided by this package.
Thanks again!
Hi, Here is a naive question. I am a novice to
emacs
andcompany-mode
. I am not sure if I did something wrong. I describe briefly my issue here.M-/
won't give me the candidate inTAGS
file.I have a setup in such a way:
Fedora 34
(WSL version).emacs
version is 27.2init-local.el
.Now when I edited the main body of
src/main.cpp
, I insertedtes
and typeM-/
. I expected thetest
will pop up. However, it showsNo completion found
. I have to typeM-x company-ctags
to find the candidate for completion. I tried theC-h v company-backends
and it returnsI am not familiar with the syntax and not sure why there is an inner-parenthesis to group a few backends. I guess the precedence of backends for
company-mode
is just from left to right in order. I tried to manipulate a bit, usingAnd this time pop-up works.
Is this behavior expected or not?
Feel free to direct me to other channels and close this issue if this is not an issue related to this nice package.
Many thanks in advance!