Skip to content

Commit

Permalink
mu4e-view: use <mouse-2> for links
Browse files Browse the repository at this point in the history
Only <mouse-2>, to be consistent with eww.
  • Loading branch information
djcb committed Mar 1, 2024
1 parent bb5c36c commit 8afe3e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions NEWS.org
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
retrieval command in a buffer =*mu4e-last-update*=, = which can be useful
for diagnosis.

- links (in text-mode emails) are now clickable through <mouse-2>, to be
consistent with eww.

- support new-mail notifications on MacOS out-of-the-box

- allow sorting by tag
Expand Down
7 changes: 3 additions & 4 deletions mu4e/mu4e-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,10 @@ list."

(defvar mu4e-view-active-urls-keymap
(let ((map (make-sparse-keymap)))
(define-key map [down-mouse-1] 'mu4e--view-browse-url-from-binding)
(define-key map [mouse-1] 'mu4e--view-browse-url-from-binding)
(define-key map (kbd "M-<return>") 'mu4e--view-browse-url-from-binding)
(define-key map (kbd "<mouse-2>") #'mu4e--view-browse-url-from-binding)
(define-key map (kbd "M-<return>") #'mu4e--view-browse-url-from-binding)
map)
"Keymap used for the urls inside the body.")
"Keymap used for the URLs inside the body.")

(defvar mu4e--view-beginning-of-url-regexp
"https?\\://\\|mailto:"
Expand Down
2 changes: 1 addition & 1 deletion mu4e/mu4e.texi
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ E edit (only allowed for draft messages)
actions
-------
g go to (visit) numbered URL (using `browse-url')
(or: <mouse-1> or M-RET with point on url)
(or: <mouse-2> or M-RET with point on URL)
C-u g visits multiple URLs
f fetch (download )the numbered URL.
C-u f fetches multiple URLs
Expand Down

0 comments on commit 8afe3e1

Please sign in to comment.