Sarcasm / company-irony

company-mode completion back-end for irony-mode
119 stars 11 forks source link

Add company-irony to company-safe-backends? #28

Closed luisgerhorst closed 8 years ago

luisgerhorst commented 8 years ago

I wanted to add a group containing company-irony and company-dabbrev-code to my company-backends so I can choose completions from company-dabbrev-code if Irony does not offer any. The problem is that this conflicts with my current catch all group (company-dabbrev-code company-keywords) which is the last item in global company backends.

I noticed that setting '((company-irony company-dabbrev-code)) as local company-backends in a buffer works although the documentation says you should check the value with company-safe-backends-p (which uses the variable company-safe-backends in which company-irony is not included) first. Is this intended / officially supported behaviour?

Edit: The problem I had can be solved by adding (company-irony :with company-dabbrev-code) to company-backends.