]> git.notmuchmail.org Git - notmuch/commit
Emacs: Add address completion based on company-mode
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 26 Oct 2015 23:22:49 +0000 (00:22 +0100)
committerDavid Bremner <david@tethera.net>
Tue, 27 Oct 2015 11:01:15 +0000 (08:01 -0300)
commit4acbc1f7d36060ff1678e576495f8122f4d4cbb3
treed715c3c6858776bd86f94b6a068552a7202351b6
parent89f78d38c1f7c9416e5bd9521dd694bb4f90572f
Emacs: Add address completion based on company-mode

When company-mode is available (Emacs >= 24), address completion
candidates are shown in a nice popup box. This is triggered either by
pressing TAB or by waiting a while during typing an address. The
completion is based entirely on the asynchronous address harvesting
from notmuch-address.el so the GUI is theoretically not blocked for
long time.

The completion works similarly as the TAB-initiated completion from
notmuch-address.el, i.e. quick harvest based on user input is executed
first and only after full harvesting is finished, in-memory cached data
is used.

[Improved by David Bremner]
emacs/Makefile.local
emacs/notmuch-address.el
emacs/notmuch-company.el [new file with mode: 0644]