Re: Notmuch-Company overrides other company backends?

Subject: Re: Notmuch-Company overrides other company backends?

Date: Sun, 09 Jan 2022 01:35:50 +0100

To: notmuch@notmuchmail.org

Cc:

From: Igor Sosa Mayor


Igor Sosa Mayor
<joseleopoldo1792@gmail.com> writes:

> David Bremner <david@tethera.net> writes:
>
>> Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
>>
>>>>
>>>> I guess you mean that it overrides it in a buffer-local way, in
>>>> notmuch-message-mode? Or do you see some kind of global overiding going
>>>> on?
>>>>
>>>> d
>>>
>>> thanks for your reply. Yes, sorry for not being clear enough. I see in
>>> the code
>>>
>>>   (make-local-variable 'company-backends)
>>>   (setq company-backends '(notmuch-company))
>>>
>>> https://github.com/kootenpv/emp/blob/master/.emacs.d/notmuch/notmuch-company.el
>>
>> That's kind of an odd reference, since it seems to be some old copy of
>> our code, possibly mutated.
>
> yes, sorry. I think it was google who gave me the reference. I see in
> the present code there is
> (setq-local company-backends '(notmuch-company))
>
> https://git.notmuchmail.org/git?p=notmuch;a=blob;f=emacs/notmuch-company.el;h=7e05dc8f2a796aaf2c664fdcc4be63f6a443057f;hb=HEAD
>
>>> What is the best method to get the other backends back?
>>
>> I would try replacing the (setq company-backends '(notmuch-local)) with
>> (push 'notmuch-company company-backends)
>>

Just for the records in case someone in the future has the same problem.
This seems to work:

(defun my-notmuch-messagemode-hook ()
  (add-to-list 'company-backends '(company-ispell company-dabbrev) t)
  )
(add-hook 'notmuch-message-mode-hook 'my-notmuch-messagemode-hook)




_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: