[oclug] mutt and function keys
Michael Hong
msh7 at sprint.ca
Sun Feb 25 14:55:47 EST 2001
Jeff 'Mutt' East wrote:
> 1. The <F1> key works under console, but not when in an rxvt - I was gonig
> to use an octal to match the X keycode, but that would be capital 'C'.
This works for me in rxvt, xterm, and the console:
# Show documentation when pressing F1
macro generic <f1> "!less /usr/doc/mutt-1.2.5i/manual.txt\n" "Show Mutt \
documentation"
macro generic "ESC[11~" "!less /usr/doc/mutt-1.2.5i/manual.txt\n" "Show \
Mutt documentation"
macro index <f1> "!less /usr/doc/mutt-1.2.5i/manual.txt\n" "Show Mutt \
documentation"
macro index "ESC[11~" "!less /usr/doc/mutt-1.2.5i/manual.txt\n" "Show \
Mutt documentation"
macro pager <f1> "!less /usr/doc/mutt-1.2.5i/manual.txt\n" "Show Mutt \
documentation"
macro pager "ESC[11~" "!less /usr/doc/mutt-1.2.5i/manual.txt\n" "Show \
Mutt documentation"
> > > I reply with quoted text, can Mutt by itself wrap those lines with
> > > quote character at the 1st column of each *new* line?
>
> > Is Mutt not doing this for you?
>
> Not quite. I found the variables "markers" and "smart_wrap", but
> they only affect the pager display; when I go to the editor, they're
> single lines. The builtin editor in Pine would respond nicely when I
> hit ^J, but I see pico (the standalone version of the internal editor)
> doensn't. I think I saw a program called 'par' that can intercede for
> me, but I figure Mutt should be able to do this.
I think mutt considers this a job for the editor. You can use Joe which
wraps quoted text correctly. If you call it with jpico it will have
pico's key bindings.
I think Mutt is great. One cool thing you can do in the message pager is
switch between a full view of the message and a split screen of the
message and the mailbox you're in:
# this binds 'z' as toggle zoom
macro pager <ESC>z \
":set pager_index_lines=0\n:macro pager z <ESC>Z \"toggle zoom\"\n"
macro pager <ESC>Z \
":set pager_index_lines=10\n:macro pager z <ESC>z \"toggle zoom\"\n"
macro pager z <ESC>z "toggle zoom"
Mike
More information about the OCLUG
mailing list