32

By default, Company mode seems to convert every prediction into lower case.

E.g:

  HelloWorldOfGoo
  HelloWorldOfEmacs
  ->
  Hell
  [Helloworldofgoo]  //Company prediction
  [Helloworldofemacs]

This is not very practical for case sensitive programming languages without a special backend. How can I make company mode case sensitive?

44

After some research, I came across the company mode git hub ticket,

which says that company mode uses dabbrev for plain text as backend.

dabbrev has an option to downcase things, it is turned on by default but can be turned off:

(setq company-dabbrev-downcase nil)

Now all is well.

  • 1
    that only works for the company-dabbrev backend... unfortunately I'm seeing the lowercasing problem with the company-ispell backend. – fommil Jun 18 '15 at 22:39
  • 6
    This drove me crazy for so long, and since it only happened in some modes, and was only a minor annoyance, I just let it go forever. Finally decided to look into it today. Seems like a weird thing to enable by default, but I am sure there is a reason. – elethan Jul 29 '16 at 20:36
  • Thanks for this. One google, one solution. What a dumbarse default;) – HörmannHH Mar 13 at 8:20

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.