From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [OFF TOPIC] almost giving up on emacs email..looking for advice? Date: Sat, 15 Aug 2015 07:35:59 -0500 Message-ID: <87lhdcg24w.fsf@fastmail.fm> References: <87egjgyo09.fsf@gmail.com> <87r3nahse2.fsf@fastmail.fm> <87zj1t3suf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQagu-00025u-Io for emacs-orgmode@gnu.org; Sat, 15 Aug 2015 08:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQagr-0003SL-9l for emacs-orgmode@gnu.org; Sat, 15 Aug 2015 08:36:04 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQagr-0003S1-6p for emacs-orgmode@gnu.org; Sat, 15 Aug 2015 08:36:01 -0400 In-Reply-To: <87zj1t3suf.fsf@gnu.org> (Bastien Guerry's message of "Sat, 15 Aug 2015 09:37:28 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Guerry Cc: Xebar Saram , Fabrice Popineau , org mode , Peter Salazar , Ramon Diaz-Uriarte , fabrice.popineau@centralesupelec.fr Hi Bastien, Bastien Guerry writes: > Hi Matt, > > Matt Lundin writes: > >> I've configured gnus to sort subscribed groups >> automatically by the number of times accessed, with the least read >> groups falling to the bottom. > > This is interesting: could you share this bit of configuration? Certainly! These are the settings I have: --8<---------------cut here---------------start------------->8--- (setq gnus-group-sort-function 'gnus-group-sort-by-rank) (add-hook 'gnus-summary-exit-hook 'gnus-summary-bubble-group) (add-hook 'gnus-suspend-gnus-hook 'gnus-group-sort-groups-by-rank) (add-hook 'gnus-exit-gnus-hook 'gnus-group-sort-groups-by-rank) --8<---------------cut here---------------end--------------->8--- This causes gnus to bump up ("bubble") the score of a group each time you read it. Then, whenever you exit or suspend gnus, all the groups will be sorted according to their a) level and b) score (i.e., the number of times read). All memory of a group's score will be wiped out if you unsubscribe or kill the group. Initially, I tried to add gnus-group-sort-by-rank to gnus-summary-exit-hook, but I seem to remember that it interfered too much with navigating the summary buffer. Here's the relevant section of the manual: https://www.gnu.org/software/emacs/manual/html_node/gnus/Group-Score.html#Group-Score There may be something else in my config file that makes this work, so feel free to let me know if the settings above don't produce the results you expect. Matt