A new macro for automatic eob

Arkadiusz Drabczyk <[email protected]> Mon, 10 Aug 2015 21:12:24 +0200
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hello there,

After a few of using mutt it became natural to me that the newest
messages are displayed on the bottom. Therefore, I set sorting_method
to 11 in my ~/.slrnrc. However, it got annoying to manually move a
pointer to the bottom every time a new group was opened so I decided
to write a macro that would this automatically for me. Here it is:

define go_bottom ()
{
   call ("header_eob");
}

variable current_sorting_method = get_variable_value ("sorting_method");

if (current_sorting_method == 10 || current_sorting_method == 11) {
    !if (1 == register_hook ("article_mode_startup_hook", &go_bottom))
           error ("failed to register go_bottom() hook");
}

It's very simple but I think it may be useful for mutt users. It's my
first ever macro written in S-Lang. I count on your opinion on this.

-- 
Arkadiusz Drabczyk <[email protected]>

------------------------------------------------------------------------------