]> git.notmuchmail.org Git - notmuch/commit
Add Emacs' imenu support in notmuch-show and notmuch-search
authorDamien Cassou <damien@cassou.me>
Mon, 12 Jun 2017 13:30:10 +0000 (15:30 +0200)
committerDavid Bremner <david@tethera.net>
Wed, 14 Jun 2017 10:49:08 +0000 (07:49 -0300)
commita83ab29930161d999ad1c45b6eb9cfbaa5e90ceb
treeee6f478962f7c0d0bf1744d5b8437cdbc77b0e55
parent1ec634461ea25d87cc16dbeb1318f8e30a07c9f1
Add Emacs' imenu support in notmuch-show and notmuch-search

Emacs' major modes can facilitate navigation in their buffers by
supporting Imenu. In such major modes, launching Imenu (M-x imenu)
makes Emacs display a list of items (e.g., function definitions in a
code buffer). Selecting an item from this list moves point to this
item.

This patch adds Imenu support to both notmuch-show and notmuch-search
buffers:

* in notmuch-show, Imenu will present a list of all messages in the
  currently visible thread;

* in notmuch-search, Imenu will present a list of all messages in the
  search buffer.
emacs/notmuch-show.el
emacs/notmuch.el