Article View: news.software.readers
Article #4595Re: saving macros in RN / TRN
From: Wayne Davison
Date: Thu, 17 Jun 1993 07:29
Date: Thu, 17 Jun 1993 07:29
26 lines
1833 bytes
1833 bytes
Michael Panayiotakis <louray@seas.gwu.edu> wrote:
> So my question is, HOW DO i MAKE THE MACROS STICK AROUND for the next
> session?
If you search for the word macro in the trn man page you'll discover that
trn looks for the file ~/.trnmac (by default -- see the TRNMACRO variable
to customize this) and settles for the file ~/.rnmac (ditto RNMACRO var)
to read its initial macro definitions. Simply put one macro per line with
some whitespace separating the macro portion from the definition into the
file of your choice and you should be all set.
> Also, if I create the above macro ('recip'), then I can't use the 'r'
> (reply/non-inclusively) command.
First, I'd recommend naming your macros something that begins with an '@'
so that you don't collide with other commands -- like "@recip".
> is there a way around this? (besides renaming the macro)?
If you want to leave this as "recip" you'd have to create a verbose macro
for the reply command: "reply r" (for example -- macro's don't loop).
See the file HINTS for some more complex macros that take into account the
current mode that trn is in to only redefine certain keys in certain areas.
.wayne..
Technical Details
Message-ID:
<C8r8tp.LFK@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davisonReferences:
<1993Jun7.034840.20118@seas.gwu.edu>Show Full Headers
Complete Article Headers
Message-ID: <C8r8tp.LFK@borland.com> Subject: Re: saving macros in RN / TRN Date: Thu, 17 Jun 1993 07:29:48 GMT From: davison@borland.com (Wayne Davison) References: <1993Jun7.034840.20118@seas.gwu.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison Newsgroups: news.software.readers Organization: Borland International Lines: 26