mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
notmuch.el: Make 'n' and 'p' bring the current message to the top.
This is much more convenient for reading the messages, and happens to match the behavior of sup.
This commit is contained in:
parent
8debf74e82
commit
40382ed98c
1 changed files with 5 additions and 4 deletions
|
@ -51,7 +51,8 @@
|
|||
(forward-char))
|
||||
(if (not (re-search-forward notmuch-show-message-begin-regexp nil t))
|
||||
(goto-char (point-max)))
|
||||
(beginning-of-line))
|
||||
(beginning-of-line)
|
||||
(recenter 0))
|
||||
|
||||
(defun notmuch-show-previous-message ()
|
||||
"Advance point to the beginning of the previous message in the buffer."
|
||||
|
@ -60,9 +61,9 @@
|
|||
(if (not (eobp))
|
||||
(forward-char))
|
||||
(if (not (re-search-backward notmuch-show-message-begin-regexp nil t))
|
||||
(progn
|
||||
(goto-char (point-min))
|
||||
(beginning-of-line))))
|
||||
(goto-char (point-min)))
|
||||
(beginning-of-line)
|
||||
(recenter 0))
|
||||
|
||||
;;;###autoload
|
||||
(defun notmuch-show-mode ()
|
||||
|
|
Loading…
Reference in a new issue