Article View: news.software.readers
Article #40185Re: slrn: macros
From: Jan Hlavacek
Date: Thu, 16 Apr 1998 00:00
Date: Thu, 16 Apr 1998 00:00
40 lines
1805 bytes
1805 bytes
On 16 Apr 1998 18:17:04 GMT, Stefan `Sec` Zehl <sec@require-re.42.org>
wrote:
> I'm trying to setup slrn and have to keybinding questions.
>
> I want to make ^B to behave like |urlview\n beeing pressed. I.e. simple
> macro capability.
define pipe_to_urlview ()
{
pipe_article ("urlview");
}
definekey ("pipe_to_urlview", "^B", "article");
> And, I want to rebind 'q' so that it hides the article window if shown,
> and acts normally otherwise. Anyway to do this ?
define hide_art_or_quit ()
{
if (is_group_mode ()) return; % just to make sure.
if (is_article_visible ()) call ("hide_article");
else call ("quit");
}
definekey ("hide_art_or_quit", "q", "article");
The above goes into a file called .slrn.sl in your home directory.
Then you need to include the following line in your .slrnrc:
interpret ".slrn.sl"
Good luck.
lahvak
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Technical Details
Message-ID:
<slrn6jck26.nh0.lahvak@math.mps.ohio-state.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn6jcip0.4kn.sec@matrix.42.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn6jck26.nh0.lahvak@math.mps.ohio-state.edu> Subject: Re: slrn: macros Date: Thu, 16 Apr 1998 00:00:00 +0000 From: lahvak@math.mps.ohio-state.edu (Jan Hlavacek) References: <slrn6jcip0.4kn.sec@matrix.42.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 344755970 Organization: Department of Mathematics, The Ohio State University Reply-To: lahvak@math.mps.ohio-state.edu Newsgroups: news.software.readers