]> rtime.felk.cvut.cz Git - notmuch.git/commit
Emacs: Add address completion based on company-mode addr-completion-v4
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 19 Sep 2014 05:35:02 +0000 (07:35 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 19 Sep 2014 17:58:09 +0000 (19:58 +0200)
commit0721a4835a3e238588bbea50c5bd66d2b82f2898
tree0474a6fc8446b1f9cdd75d68869e5c2f314b1b24
parentcc21ef15e3aa4fbfa1c9cfca010dcb3bfd68ea9a
Emacs: Add address completion based on company-mode

With this patch, address completion candidates are shown automatically
after short typing delay in a nice popup box. This requires company-mode
to be installed and it works only on Emacs >= 24. 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.

The notmuch-company.el is excluded from byte-compilation, because it
would require every person who want to compile notmuch to have
company-mode installed.
emacs/Makefile.local
emacs/notmuch-company.el [new file with mode: 0644]