Mutt scrolls the index of email folders up or down, one line at a time, with the press of a single key: ‘<’ or ‘>’. This is a very convenient way to skim through email folder listings, so I wrote a small bit of Emacs Lisp to do the same in Gnus tonight.
;;; ;; Scrolling like mutt for group, summary, and article buffers. ;; ;; Being able to scroll the current buffer view by one line with a ;; single key, rather than having to guess a random number and recenter ;; with `C-u NUM C-l' is _very_ convenient. Mutt binds scrolling by one ;; line to '<' and '>', and it's something I often miss when working ;; with Gnus buffers. Thanks to the practically infinite customizability ;; of Gnus, this doesn't have to be an annoyance anymore. (defun keramida-mutt-like-scrolling () "Set up '<' and '>' keys to scroll down/up one line, like mutt." ;; mutt-like scrolling of summary buffers with '<' and '>' keys. (local-set-key (kbd ">") 'scroll-up-line) (local-set-key (kbd "<") 'scroll-down-line)) (add-hook 'gnus-group-mode-hook 'keramida-mutt-like-scrolling) (add-hook 'gnus-summary-mode-hook 'keramida-mutt-like-scrolling) (add-hook 'gnus-article-prepare-hook 'keramida-mutt-like-scrolling)
This is now the latest addition to my
~/.gnus startup code, and we're one step closer to making Gnus behave like my favorite old-time mailer.
Filed under: Computers, Emacs, Email, Free software, FreeBSD, GNU/Linux, Gnus, Linux, Open source, Programming, Software Tagged: Computers, Emacs, Email, Free software, FreeBSD, GNU/Linux, Gnus, Linux, Open source, Programming, Software