Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: pmlists@free.fr (Peter Münster)
To: info-gnus-english@gnu.org
Subject: Re: Any way to click article buttons without leaving the summary buffer?
Date: Tue, 04 Jan 2011 10:27:45 +0100	[thread overview]
Message-ID: <8739p9dnn2.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: <87aajje5li.fsf@micropit.couberia.bzh>

pmlists@free.fr (Peter Münster) writes:

> I'm just working on my-alter-summary-map and my-alter-article-map to get
> this behaviour.

Here some ideas:

--8<---------------cut here---------------start------------->8---
(defun my-alter-group-map ()
  (local-set-key [right] 'gnus-group-select-group))

(defun my-alter-summary-map ()
  (local-set-key [left] 'gnus-summary-exit)
  (local-set-key [right] '(lambda () (interactive)
                            (gnus-summary-show-article)
                            (gnus-summary-select-article-buffer)
                            (delete-other-windows)))
  (local-set-key "s" '(lambda () (interactive)
                        (gnus-summary-move-article)
                        (next-line)))
  (local-set-key "d" [?M ?M ?e ?e down]))

(defun my-alter-article-map ()
  (local-set-key [left] '(lambda () (interactive)
                           (gnus-article-show-summary)
                           (delete-other-windows)))
  (local-set-key "s" '(lambda () (interactive)
                        (gnus-summary-move-article)
                        (gnus-summary-next-unread-article)
                        (gnus-summary-show-article)
                        (gnus-summary-select-article-buffer)
                        (delete-other-windows)))
  (local-set-key "d" "MMeeN"))

(add-hook 'gnus-group-mode-hook 'my-alter-group-map)
(add-hook 'gnus-summary-mode-hook 'my-alter-summary-map)
(add-hook 'gnus-article-mode-hook 'my-alter-article-map)
--8<---------------cut here---------------end--------------->8---

(delete-other-window) is just personal taste.
s: save message
d: delete message

When you read your messages without leaving the article buffer (using
"n", "space" and so on), you can immediatly jump to the URLs with TAB.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

  reply	other threads:[~2011-01-04  9:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-01 23:14 Sean McAfee
2011-01-02  7:13 ` Lars Magne Ingebrigtsen
2011-01-04  0:57   ` Sean McAfee
2011-01-04  1:10     ` Lars Magne Ingebrigtsen
2011-01-04 14:25       ` Dan Christensen
2011-01-05 11:44         ` Philipp Haselwarter
2011-01-06 14:52           ` Dan Christensen
2011-01-04 22:05       ` Peter Münster
     [not found]       ` <mailman.1.1294151194.4785.info-gnus-english@gnu.org>
2011-01-11 19:55         ` Lars Magne Ingebrigtsen
2011-01-02 12:17 ` Sean Sieger
2011-01-02 12:27   ` Sean Sieger
2011-01-02 14:35 ` Peter Münster
2011-01-04  9:27   ` Peter Münster [this message]
     [not found] ` <mailman.4.1293971110.4418.info-gnus-english@gnu.org>
2011-01-04  0:39   ` Sean McAfee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739p9dnn2.fsf@micropit.couberia.bzh \
    --to=pmlists@free.fr \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).