Article View: news.software.nn
Article #5983nn: control key syntax in macro-definition - easy kill - SOLUTION
From: Andrej Barth
Date: Thu, 16 Jun 1994 07:49
Date: Thu, 16 Jun 1994 07:49
34 lines
1900 bytes
1900 bytes
My question was: > I am using nn. > And I would like to create a macro in the init file. > Can anybody, please, tell me what the correct syntax would be for the > Enter-key (Return-key). I have tried ^M, '^M', and neither did work. With the help of Nancy McGough (nancym@u.washington.edu) and some try and error I found out how it works. This is now part of my .nn/init: # kill subject 30 days map menu ^ ( kill-select ' ) # kill subject permanent map menu _ ( kill-select 'k' 's' "%" input 'g' "p" yes ) One tricky problem (at least for me) was, that I found out to enter the CR as 'Ctrl-v enter' and not as '^ M' literally. Well, in the end I still found it. By the way, these two macros (key-bindings) allow to REALLY KILL received articles (not only mark them read as junk-kill does) with a minimum of input. This way they don't bother me anymore. Have a nice day, you folks in netland Andrej -- Andrej Barth (The Fox) barth@bln.sel.alcatel.de
Technical Details
Message-ID:
<barth.771752989@slbh04>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!gatech!concert!news-feed-1.peachnet.edu!emory!swrinde!howland.reston.ans.net!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!slbh04!barthShow Full Headers
Complete Article Headers
Message-ID: <barth.771752989@slbh04> Subject: nn: control key syntax in macro-definition - easy kill - SOLUTION Date: Thu, 16 Jun 1994 07:49:49 GMT From: barth@bln.sel.alcatel.de (Andrej Barth) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!gatech!concert!news-feed-1.peachnet.edu!emory!swrinde!howland.reston.ans.net!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!slbh04!barth Newsgroups: news.newusers.questions,news.software.nn Keywords: return enter control macro answer Sender: news@bln.sel.alcatel.de (News Administrator) Organization: Alcatel SEL AG Berlin, Department VB/EAO Lines: 34