Article View: news.software.nn
Article #1937nn init file summaries (part 6 of 9)
From: Bill Wohler
Date: Thu, 01 Aug 1991 20:06
Date: Thu, 01 Aug 1991 20:06
735 lines
17137 bytes
17137 bytes
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of archive 6 (of 9)."
# Contents: msgs/42 msgs/8
# Wrapped by wohler@is0001 on Thu Aug 1 20:59:50 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'msgs/42' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'msgs/42'\"
else
echo shar: Extracting \"'msgs/42'\" \(6613 characters\)
sed "s/^X//" >'msgs/42' <<'END_OF_FILE'
XDelivery-Date: Mon, 03 Jun 91 16:22:52 +0200
X>From datpete%daimi.aau.dk@unido.uucp Mon Jun 3 16:22:51 1991
XReceived: from sw0001 by is0001 (AIX 3.1/UCB 5.61/4.03)
X id AA44017; Mon, 3 Jun 91 16:22:51 +0200
X for /usr/lib/mh/slocal
XFrom: <datpete%daimi.aau.dk@unido.uucp>
XReturn-Path: <datpete%daimi.aau.dk@unido.uucp>
XReceived: by sap-ag.de (5.52.1/SAP-1.1)
X id AA02176; Mon, 3 Jun 91 16:17:50 +0100
X for wohler@is0001
XReceived: from daimi.aau.dk
X by unido.informatik.uni-dortmund.de with SMTP (5.65+/UNIDO-2.0.4.d)
X via EUnet for sapwdf
X id AA01528; Mon, 3 Jun 91 16:09:53 +0200
XReceived: from janne.daimi.aau.dk by daimi.aau.dk with SMTP
X (5.61++/IDA-1.2.8) id AA15403; Mon, 3 Jun 91 16:07:22 +0200
XReceived: by janne.daimi.aau.dk (5.64/1.34)
X id AA00531; Mon, 3 Jun 91 16:07:16 +0200
XMessage-Id: <9106031407.AA00531@janne.daimi.aau.dk>
XSubject: Here's my nn init file
XTo: wohler@sap-ag.de ((Bill Wohler))
XDate: Mon, 3 Jun 91 16:07:14 METDST
XX-Mailer: ELM [version 2.3 PL11]
X
X#
X# datpete nn init file
X#
X
X# these are some of the variables you may want to set-up globally;
X# check with the manual to see if you really need them!
X
Xset folder ~/brevordner
Xunset cross-post
Xset re-layout 1
Xset confirm-auto-quit
Xset default-save-file +$G
Xunset confirm-create
Xset header-lines _FDN=SKL
Xset include-art-id
Xset mail-format
Xunset overlap
Xset wrap-header-margin 6
Xset pager /usr/local/bin/less
Xset printer psscript -o | multi -lines | lpr -Pnec0
Xset retry-on-error 2
Xunset collapse-subject
Xset auto-select-subject
Xunset edit-response-check
Xset flush-typeahead
Xset mail-header Reply-To: datpete@daimi.aau.dk (Peter Andersen)
Xset news-header Reply-To: datpete@daimi.aau.dk (Peter Andersen)
X# set mail-record ~/brevordner/NNmail
X# set news-record ~/brevordner/NNnews
Xset repeat-group-query
Xset show-purpose-mode 1
X# set save-counter .%02d
X# set silent
X# set expert
X# set new-group-action 4
Xset data-bits 8
X# 6.4.16
Xset follow-distribution same ask world
Xset consolidated-menu
Xset check-db-update-time
Xset consolidated-manual
X
X# To disable continue-no-mark:
Xmap menu ^M continue
Xmap menu ^J continue
X
Xon start-up
X :show groups sequence
Xend
X
X########################## MACRO DEFINITIONS: ############################
X#==========================================================================
X
X# An additional keymap prefixed by c-x (a la emacs)
Xmake map ctl-x
Xmap both ^X prefix ctl-x
X
X
X# A FEW PRINTING-SHORTCUTS
X# ========================
X
X# 'ctl-x r' print on rug-writer 9
Xmap ctl-x r (
Xsave-full "| preprug | lp -drug9"
X)
X
X# '|' or 'ctl-x 1' prints on nec1 printer
Xdefine 1
Xsave-full "| psscript -o | multi -lines | lpr -Pnec1"
Xend
Xmap ctl-x n macro 1
Xmap show | macro 1
X
X# 'ctl-x 2' prints on nec2 printer
X
Xmap ctl-x 2 (
Xsave-full "| psscript -o | multi -lines | lpr -Pnec2"
X)
X
X# SHORTCUTS FOR SHOWING MAPPINGS
X# ==============================
X
X# 'ctl-x ^#' show multikey map
X# 35 decimal = '#'
Xmap ctl-x 3 (
X:show map #
X)
X
X# 'ctl-x ^k' show input key mapping
Xmap ctl-x ^k (
X:show map key
X)
X
X# 'ctl-x ^s' show key bindings in reading mode
Xmap ctl-x ^s (
X:show map show
X)
X
X# 'ctl-x ^m' show key bindings in menu mode
Xmap ctl-x ^m (
X:show map menu
X)
X
X# 'ctl-x ctl-x' show ctl-x bindings
Xmap ctl-x ^X (
X:show map ctl-x
X)
X
X# Make the pager in show mode more a la "less"
X# ============================================
X
Xmap show g page=1
Xmap show G page=$
Xmap show b page-1
Xmap show q next-article
X
X# MISC.
X# ====
X
X# ctl-x s: save all selcted files; only ask for name
Xmap ctl-x s (
X ?menu save-full input '+'
X ?show save-full input
X)
X
X
X# Arrows to goto next/previous menu page
Xmap menu right page+1
Xmap menu left page-1
X
X# ^C Interrupt the current operation
Xmap key ^C ^G
X
X# 'ctl-x a' shows all groups
Xmap ctl-x a (
X:show groups total
X)
X
X# ctl-x v: toggle show full/short header
Xdefine 2
X # set short header
X :set header-lines _FODn=S
X :map ctl-x v macro 3
X # no redraw on start-up/in menu
X ?show redraw
Xend
Xdefine 3
X # set full header
X :set header-lines ABCDdFfGIKL_NOPR=SWXxY
X :map ctl-x v macro 2
X # no redraw on start-up/in menu
X ?show redraw
Xend
Xmap ctl-x v macro 3
X
X# ctl-x j: Jump to group read on input
Xmap ctl-x j (
X goto-group input yes "j"
X)
X
X# ^A: select all articles on all menu pages
Xmap menu ^a (
X find "."
X)
X
X# ctl-x m: get menu of articles with current subject
Xmap ctl-x g (
X goto-group "s" ""
X)
X
X
X# ctl-x k in menu: Kill all unselected articles
Xmap ctl-x k (
X ?show return
X prompt "Kill all unselected articles?"
X ?no return
X junk-articles 'U' yes
X junk-articles 'S' yes
X junk-articles '^J'
X)
X
Xmap ctl-x o (
X open-subject
X)
X
Xmap ctl-x c (
X close-subject
X)
X
X
X### ------------ Less often used ones -------------------
X
X# ^K: Show kill file
Xmap both ^K (
X :show kill
X)
X
X# ^E: edit & load init file
Xmap both ^e (
X :!$EDITOR ~/.nn/init
X :load init
X)
X
X# ^K: edit & compile kill file
Xmap both ^k (
X :!sort ~/.nn/kill -o ~/.nn/kill ; $EDITOR ~/.nn/kill
X :compile
X)
X
X# ^S: append current group to init file and optionally edit init file
Xmap both ^S (
X prompt "Append group name to group sequence?"
X ?yes :!echo $G >> ~/.nn/init
X prompt "Edit init file?"
X ?no return
X :!$EDITOR ~/.nn/init
X redraw
X echo "Init file updates will be used on next invokation of nn"
X)
X
X# ^O: forward article to myself
X
Xmap show ^o (
X mail yes "" "" no
X)
X
X# _ in
X
Xmap menu _ (
X :set select-on-sender
X find input
X :unset select-on-sender
X)
X
X
Xmap show m (
X mail yes input "" no
X)
X
X
X# Hack to make arrows work on MacII: (didn't work)
X
X# on term vt100
X# map #8 ^[ [ A
X# map #9 ^[ [ B
X# map key up #8
X# map key down #9
X# end
X
X
X# SPECIFICATION OF PRESENTATION SEQUENCE:
X# ======================================
X
Xunset also-subgroups
X
Xsequence
X
Xdaimi
Xdaimi.lovers
Xdaimi.text
Xdaimi.dat4
Xdaimi.x
Xdaimi.beta +beta
Xdaimi.hp +hp
Xdaimi.sun
Xdaimi.ampe
Xdaimi.database
Xdaimi.emacs
Xdaimi.mac
Xdaimi.modula-2
Xdaimi.vlsi_F89
Xdaimi.del2
Xdaimi.prog_om +prog_om
Xdaimi.dat32 +beta
Xdaimi.dat23
Xdaimi.rasF90
Xdaimi.
X
XNEW
X
Xdk.test (
X :set header-lines ABDd_FfIKLNnOPR=SWXxY
X)
Xdk.
Xalt.sex.pictures ~/bitmaps/gif/ (
X :local consolidated-menu off
X)
Xcomp.sources.x
Xcomp.windows.x
Xcomp.graphics ~/bitmaps/gif/
Xcomp.text.tex
Xbit.listsev.tex-l
Xcomp.windows.interviews +interviews
Xcomp.sources.bugs
Xcomp.
Xnews.software.nn +nn
Xnews.software.nntp +nntp
Xnews.software.b +news
Xnews.admin +news
Xnews.sysadmin +news
Xnews.announce.
Xcontrol
Xjunk
X
Xalt.
Xbit.
Xgnu.
X
XRC
X
X!!
END_OF_FILE
if test 6613 -ne `wc -c <'msgs/42'`; then
echo shar: \"'msgs/42'\" unpacked with wrong size!
fi
# end of 'msgs/42'
fi
if test -f 'msgs/8' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'msgs/8'\"
else
echo shar: Extracting \"'msgs/8'\" \(6849 characters\)
sed "s/^X//" >'msgs/8' <<'END_OF_FILE'
XDelivery-Date: Mon, 18 Mar 91 21:59:05 +0100
X>From datpete%daimi.aau.dk@unido.uucp Mon Mar 18 21:59:04 1991
XReceived: from sapwdf by aix3 (AIX 3.1/UCB 5.61/4.03)
X id AA21164; Mon, 18 Mar 91 21:59:04 +0100
XFrom: <datpete%daimi.aau.dk@unido.uucp>
XReturn-Path: <datpete%daimi.aau.dk@unido.uucp>
XReceived: by sap-ag.de (5.52.1/SAP-1.0)
X id AA23012; Mon, 18 Mar 91 21:58:12 +0100
XReceived: from daimi.aau.dk
X by unido.informatik.uni-dortmund.de with SMTP (5.65+/UNIDO-2.0.3.j)
X via EUnet for sapwdf
X id AA09062; Mon, 18 Mar 91 20:04:39 GMT
XReceived: from anne.daimi.aau.dk by daimi.aau.dk with SMTP
X (5.61++/IDA-1.2.8) id AA02847; Mon, 18 Mar 91 21:00:29 +0100
XReceived: by anne.daimi.aau.dk (5.64/1.34)
X id AA09712; Mon, 18 Mar 91 21:00:20 +0100
XDate: Mon, 18 Mar 91 21:00:20 +0100
XMessage-Id: <9103182000.AA09712@anne.daimi.aau.dk>
XTo: wohler@sap-ag.de
XSubject: Re: wanted: init files
XNewsgroups: news.software.nn
XReferences: <2657@sapwdf.UUCP>
XReply-To: datpete%daimi.aau.dk@unido (Peter Andersen)
X
XHere's mine:
X
X#
X# datpete nn init file
X#
X
X# these are some of the variables you may want to set-up globally;
X# check with the manual to see if you really need them!
X
Xset folder ~/brevordner
Xunset cross-post
Xset re-layout 1
Xset confirm-auto-quit
Xset default-save-file +$G
Xunset confirm-create
Xset header-lines _FDN=SKL
Xset include-art-id
Xset mail-format
Xunset overlap
Xset wrap-header-margin 6
Xset pager /usr/local/bin/less
Xset printer psscript -o | multi -lines | lpr -Pnec1
Xset retry-on-error 2
Xunset collapse-subject
Xset auto-select-subject
Xunset edit-response-check
Xset flush-typeahead
Xset mail-header Reply-To: datpete@daimi.aau.dk (Peter Andersen)
Xset news-header Reply-To: datpete@daimi.aau.dk (Peter Andersen)
Xset mail-record ~/brevordner/NNmail
Xset news-record ~/brevordner/NNnews
Xset repeat-group-query
Xset show-purpose-mode 1
X# set save-counter .%02d
X# set silent
X# set expert
X# set new-group-action 4
X
X# To disable continue-no-mark:
Xmap menu ^M continue
Xmap menu ^J continue
X
Xon start-up
X :show groups sequence
Xend
X
X########################## MACRO DEFINITIONS: ############################
X#==========================================================================
X
X# An additional keymap prefixed by c-x (a la emacs)
Xmake map ctl-x
Xmap both ^X prefix ctl-x
X
X
X# A FEW PRINTING-SHORTCUTS
X# ========================
X
X# 'ctl-x r' print on rug-writer 9
Xmap ctl-x r (
Xsave-full "| preprug | lp -drug9"
X)
X
X# '|' or 'ctl-x 1' prints on nec1 printer
Xdefine 1
Xsave-full "| psscript -o | multi -lines | lpr -Pnec1"
Xend
Xmap ctl-x n macro 1
Xmap show | macro 1
X
X# 'ctl-x 2' prints on nec2 printer
X
Xmap ctl-x 2 (
Xsave-full "| psscript -o | multi -lines | lpr -Pnec2"
X)
X
X# SHORTCUTS FOR SHOWING MAPPINGS
X# ==============================
X
X# 'ctl-x ^#' show multikey map
X# 35 decimal = '#'
Xmap ctl-x 3 (
X:show map #
X)
X
X# 'ctl-x ^k' show input key mapping
Xmap ctl-x ^k (
X:show map key
X)
X
X# 'ctl-x ^s' show key bindings in reading mode
Xmap ctl-x ^s (
X:show map show
X)
X
X# 'ctl-x ^m' show key bindings in menu mode
Xmap ctl-x ^m (
X:show map menu
X)
X
X# 'ctl-x ctl-x' show ctl-x bindings
Xmap ctl-x ^X (
X:show map ctl-x
X)
X
X# Make the pager in show mode more a la "less"
X# ============================================
X
Xmap show g page=1
Xmap show G page=$
Xmap show b page-1
Xmap show q next-article
X
X# MISC.
X# ====
X
X# ctl-x s: save all selcted files; only ask for name
Xmap ctl-x s (
X ?menu save-full input '+'
X ?show save-full input
X)
X
X
X# Arrows to goto next/previous menu page
Xmap menu right page+1
Xmap menu left page-1
X
X# ^C Interrupt the current operation
Xmap key ^C ^G
X
X# 'ctl-x a' shows all groups
Xmap ctl-x a (
X:show groups total
X)
X
X# ctl-x v: toggle show full/short header
Xdefine 2
X # set short header
X :set header-lines _FODn=S
X :map ctl-x v macro 3
X # no redraw on start-up/in menu
X ?show redraw
Xend
Xdefine 3
X # set full header
X :set header-lines ABCDdFfGIKL_NOPR=SWXxY
X :map ctl-x v macro 2
X # no redraw on start-up/in menu
X ?show redraw
Xend
Xmap ctl-x v macro 3
X
X# ctl-x j: Jump to group read on input
Xmap ctl-x j (
X goto-group input yes "j"
X)
X
X# ^A: select all articles on all menu pages
Xmap menu ^a (
X find "."
X)
X
X# ctl-x m: get menu of articles with current subject
Xmap ctl-x g (
X goto-group "s" ""
X)
X
X
X# ctl-x k in menu: Kill all unselected articles
Xmap ctl-x k (
X ?show return
X prompt "Kill all unselected articles?"
X ?no return
X junk-articles 'U' yes
X junk-articles 'S' yes
X junk-articles '^J'
X)
X
X
X### ------------ Less often used ones -------------------
X
X# ^K: Show kill file
Xmap both ^K (
X :show kill
X)
X
X# ^E: edit & load init file
Xmap both ^e (
X :!$EDITOR ~/.nn/init
X :load init
X)
X
X# ^K: edit & compile kill file
Xmap both ^k (
X :!sort ~/.nn/kill -o ~/.nn/kill ; $EDITOR ~/.nn/kill
X :compile
X)
X
X# ^S: append current group to init file and optionally edit init file
Xmap both ^S (
X prompt "Append group name to group sequence?"
X ?yes :!echo $G >> ~/.nn/init
X prompt "Edit init file?"
X ?no return
X :!$EDITOR ~/.nn/init
X redraw
X echo "Init file updates will be used on next invokation of nn"
X)
X
X# ^O: forward article to myself
X
Xmap show ^o (
X mail yes "" "" no
X)
X
X# _ in
X
Xmap menu _ (
X :set select-on-sender
X find input
X :unset select-on-sender
X)
X
X
Xmap show m (
X mail yes input "" no
X)
X
X
X# Hack to make arrows work on MacII: (didn't work)
X
X# on term vt100
X# map #8 ^[ [ A
X# map #9 ^[ [ B
X# map key up #8
X# map key down #9
X# end
X
X# redefinition of xterm arrows (due to errors in termcap/terminfo):
X# on term xterm
X# map #up ^[[A
X# map #down ^[[B
X# map #right ^[[C
X# map #left ^[[D
X# end
X
X
X
X# SPECIFICATION OF PRESENTATION SEQUENCE:
X# ======================================
X
Xunset also-subgroups
X
Xsequence
X
Xdaimi
Xdaimi.lovers
Xdaimi.text
Xdaimi.dat4
Xdaimi.x
Xdaimi.beta +beta
Xdaimi.hp +hp
Xdaimi.sun
Xdaimi.ampe
Xdaimi.database
Xdaimi.emacs
Xdaimi.mac
Xdaimi.modula-2
Xdaimi.vlsi_F89
Xdaimi.del2
Xdaimi.prog_om +prog_om
Xdaimi.dat32 +beta
Xdaimi.dat23
Xdaimi.rasF90
Xdaimi.
Xdk.test (
X :set header-lines ABDd_FfIKLNnOPR=SWXxY
X)
Xdk.
Xcomp.sources.x
Xcomp.windows.x
Xcomp.graphics ~/bitmaps/gif/
Xcomp.text.tex
Xbit.listsev.tex-l
Xcomp.windows.interviews +interviews
Xcomp.sources.bugs
Xcomp.
Xnews.software.nn +nn
Xnews.software.nntp +nntp
Xnews.software.b +news
Xnews.admin +news
Xnews.sysadmin +news
Xnews.announce.
Xalt.sex.pictures ~/bitmaps/gif/
Xalt.
Xbit.
Xgnu.
Xcontrol
Xjunk
X
XRC
XNEW
X
X!!
X
X
X
X
X
X
X---------------------
X
XThere may be some local stuff in it, but I hope you can use it.
XI'd like to hear from you if you have some interesting macros.
X
XMaybe a summary in the newsgroup is a good idea.
XMany of my macros is from the last time someone posted a similar summary.
X
XPeter
X
X
X
END_OF_FILE
if test 6849 -ne `wc -c <'msgs/8'`; then
echo shar: \"'msgs/8'\" unpacked with wrong size!
fi
# end of 'msgs/8'
fi
echo shar: End of archive 6 \(of 9\).
cp /dev/null ark6isdone
MISSING=""
for I in 1 2 3 4 5 6 7 8 9 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 9 archives.
rm -f ark[1-9]isdone ark[1-9][0-9]isdone
else
echo You still need to unpack the following archives:
echo " " ${MISSING}
fi
## End of shell archive.
exit 0
--
--bw
-----
Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
Technical Details
Message-ID:
<2979@sapwdf.UUCP>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!gmdzi!unido!sapwdf!wohlerShow Full Headers
Complete Article Headers
Message-ID: <2979@sapwdf.UUCP> Subject: nn init file summaries (part 6 of 9) Date: Thu, 01 Aug 1991 20:06:49 +0000 From: wohler@sapwdf.UUCP (Bill Wohler) 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!gmdzi!unido!sapwdf!wohler Newsgroups: news.software.nn Reply-To: Bill Wohler <wohler@sap-ag.de> Organization: SAP AG, Walldorf, Germany Lines: 735