3

When typing in a buffer with company-mode the completions popup shows after typing the third character:

emacs company popup

Is it possible to do this after typing the first or second charater?

12

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.

  • I was unable to find this on my own. Is there any good documentation on company-mode or do I have to look through company.el (I'm new to Emacs)? – max0r Dec 1 '14 at 13:14
  • @max0r answer updated. – Tu Do Dec 1 '14 at 13:23
  • 1
    @max0r Small (but important) correction: 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
  • 1
    @max0r There is a recommendation to use M-x customize-group on the company-mode homepage. – Dmitry Dec 1 '14 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.