]> git.notmuchmail.org Git - notmuch/commitdiff
Make mouse-1 click in search view show thread
authorKeith Packard <keithp@keithp.com>
Sat, 21 Nov 2009 07:15:06 +0000 (23:15 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 05:29:53 +0000 (06:29 +0100)
Selecting text in the search view isn't all that useful, so instead,
make mouse-1 clicks actually show the thread you click on. It's almost
like direct manipulation or something.

Signed-off-by: Keith Packard <keithp@keithp.com>
notmuch.el

index 1f2446132303938d76d397586630a7423fd2ddf2..815368957d4d11607fc19e4856568e5faee96638 100644 (file)
@@ -811,6 +811,7 @@ thread from that buffer can be show when done with this one)."
     (define-key map "t" 'notmuch-search-filter-by-tag)
     (define-key map "x" 'kill-this-buffer)
     (define-key map (kbd "RET") 'notmuch-search-show-thread)
     (define-key map "t" 'notmuch-search-filter-by-tag)
     (define-key map "x" 'kill-this-buffer)
     (define-key map (kbd "RET") 'notmuch-search-show-thread)
+    (define-key map [mouse-1] 'notmuch-search-show-thread)
     (define-key map "+" 'notmuch-search-add-tag)
     (define-key map "-" 'notmuch-search-remove-tag)
     (define-key map "<" 'beginning-of-buffer)
     (define-key map "+" 'notmuch-search-add-tag)
     (define-key map "-" 'notmuch-search-remove-tag)
     (define-key map "<" 'beginning-of-buffer)