When typing in a buffer with company-mode the completions popup shows after typing the third character:
Is it possible to do this after typing the first or second charater?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityWhen typing in a buffer with company-mode the completions popup shows after typing the third character:
Is it possible to do this after typing the first or second charater?
You can set company-minimum-prefix-length
to a desire value of your choice:
(setq company-minimum-prefix-length 2)
You can use the customize interface M-x customize
and search for company
in there using the search box. It will list relevant options related to the package. You can also search for a variable with C-h v or search for a command with C-h a, which is apropos-command
is bound to by default. If you like interactive apropos that gives you everything: functions, commands and variables, and gives you instant feedback for every character entered), you can use helm-apropos. Helm in general is really convenient and user friendly. See my Helm guide for details.
C-h a
is bound to apropos-command
by default, which won't look for matching variables. There is no default key binding for the apropos
command, so you'll either have to set one up yourself or call the command via M-x
apropos
RET
.
– itsjeyd
Dec 1 '14 at 16:55
M-x customize-group
on the company-mode homepage.
– Dmitry
Dec 1 '14 at 17:31