I recently noticed this wonderful and useful lisp snippet for company configuration. However, this configuration is written rather long ago, and should do the following update for working with the latest company version:
- The
company-show-numbers has been renamed to company-show-quick-access, see here.
- As I've commented here, customize the configuration:
(setq company-quick-access-keys '("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")) to match the definition used here.
NB. Based on my further testing, the problem 2. is caused by company-box. If that package is not used with company, your original code works perfectly.
Regards,
HY