[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] lynx and ruby, '*.rb' files
From: |
russellbell |
Subject: |
Re: [Lynx-dev] lynx and ruby, '*.rb' files |
Date: |
Sat, 15 Aug 2020 07:09:07 -0600 |
Quoth Mike McClain:
'As per your suggestion I put this in ~/.mailcap:
text/plain; cat %s; copiousoutput'
The first field (the part before ;) identifies the type of file. This
entry instructs mail (and lynx) how to treat 'text/plain' files, not
ruby files.
'When that didn't help I created ~/.lynxcap with the same
entry.'
.lynxcap is my invention. To get lynx to use it one must add:
PERSONAL_MAILCAP:~/.lynxcap
to lynx.cfg; lynx uses .mailcap by default.
'Reading up on mailcap led to mime.types and in /etc/mime.types
commenting out this line:
#application/x-ruby rb
allowed lynx to open ruby source files.'
Lines that begin with # are comments, not acted upon. I would
have tried:
text/rb; less %s
russell bell