Thread View: news.software.nn
1 messages
1 total messages
Started by Bill Wohler
Thu, 01 Aug 1991 20:07
nn init file summaries (part 7 of 9)
Author: Bill Wohler
Date: Thu, 01 Aug 1991 20:07
Date: Thu, 01 Aug 1991 20:07
701 lines
22121 bytes
22121 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 7 (of 9)."
# Contents: msgs/12 msgs/22
# Wrapped by wohler@is0001 on Thu Aug 1 20:59:50 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'msgs/12' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'msgs/12'\"
else
echo shar: Extracting \"'msgs/12'\" \(10349 characters\)
sed "s/^X//" >'msgs/12' <<'END_OF_FILE'
XDelivery-Date: Tue, 19 Mar 91 06:06:52 +0100
X>From mrle_cif%uhura.cc.rochester.edu@unido.uucp Tue Mar 19 06:06:50 1991
XReceived: from sapwdf by aix3 (AIX 3.1/UCB 5.61/4.03)
X id AA04034; Tue, 19 Mar 91 06:06:50 +0100
XReturn-Path: <mrle_cif%uhura.cc.rochester.edu@unido.uucp>
XReceived: by sap-ag.de (5.52.1/SAP-1.0)
X id AA26142; Tue, 19 Mar 91 06:06:02 +0100
XReceived: from uhura.cc.rochester.edu
X by unido.informatik.uni-dortmund.de with SMTP (5.65+/UNIDO-2.0.3.j)
X via EUnet for sapwdf
X id AA08206; Tue, 19 Mar 91 02:13:32 GMT
XReceived: from troi.cc.rochester.edu by uhura.cc.rochester.edu (4.1/1.16) id AA18176; Mon, 18 Mar 91 21:12:47 EST
XDate: Mon, 18 Mar 91 21:12:47 EST
XFrom: Mark R. Levinson <mrle_cif%uhura.cc.rochester.edu@unido>
XMessage-Id: <9103190212.AA18176@uhura.cc.rochester.edu>
XTo: wohler@sap-ag.de
XSubject: Re: wanted: init files
XNewsgroups: news.software.nn
XReferences: <2657@sapwdf.UUCP>
X
X Here's my personal init file, followed by the global init file for our
Xsite (also written by me). Not particularly exciting, I'm afraid, but I hope
Xyou find a use for it. Enjoy!
X -Mark-
X
X-------------------------------------------------------------------------------
Xset mail-record /u/cif/mrle_cif/Mail/mbox
Xset auto-select-subject on
Xset suggest-default-save on
Xset header-lines *=n
Xon entry junk
X :local header-lines *=N
Xend
Xon entry clari*
X :local layout 2
X :local header-lines *
Xend
Xsave-files
X comp.archives +ftp/
X comp.binaries.mac +hqx/
X comp.sys.mac. +mac/
X comp.unix.admin +unix-admin/
X comp.unix.shell +scripts/
X news.software.nn +nn/
X rec.arts.disney +mermaid/
X ur.cif +ur.cif
X ur.cs240 ~/etc/cs240
Xend
X-------------------------------------------------------------------------------
X#### This is the global configuration file for nn; it specifies the default
X#### settings for everyone using nn on troi. In addition, this file explains
X#### many of nn's default variable settings in order to give you ideas for
X#### creating your own individual configuration file (~/.nn/init), with which
X#### you can override the default behavior specified here.
X
X
X
X### Changes to nn's default behavior
X
X# The bug-report-address variable contains the address to which mail is sent
X# when the :bug command is used. This default setting sends bug reports to the
X# CIF System Administrator.
X#
Xset bug-report-address cif@uhura.cc.rochester.edu
X
X# The default-save-file variable gives the name of the file to be used when
X# saving articles if no alternative file name is specified. This default
X# setting uses the name of the newsgroup for the name of the file.
X#
Xset default-save-file +$G
X
X# The suggest-default-save variable determines whether or not nn suggests the
X# default save file when prompting for the save file name. This default setting
X# prevents nn from suggesting the default save file (although it can still be
X# used by typing a single + at the prompt).
X#
Xset suggest-default-save off
X
X# The confirm-create variable tells nn whether or not to ask for confirmation
X# when the user asks to create a new file while saving an article. This default
X# setting tells nn not to ask; setting this variable to `on' would make nn
X# behave like rn in this respect.
X#
Xset confirm-create off
X
X# The include-art-id variable tells nn whether or not to include the article
X# id number of a posting when including text from it in a reply or follow-up.
X# This default setting causes nn to include the article id.
X#
Xset include-art-id on
X
X# The mail-format variable specifies the format that will be used when articles
X# are saved (and which of the header lines will be retained). This default
X# setting saves articles in a format that is compatible with (and readable by)
X# mail programs.
X#
Xset mail-format on
X
X# The keep-unsubscribed variable determines whether or not nn keeps
X# unsubscribed groups in the .newsrc file. This default setting causes nn to
X# remove unsubscribed groups from the file if the tidy-newsrc variable is set.
X#
Xset keep-unsubscribed off
X
X# The tidy-newsrc variable determines whether or not nn removes unsubscribed
X# groups (and groups that are not found in the active file) from the .newsrc
X# file. This default setting causes nn to remove such groups from the file.
X#
Xset tidy-newsrc on
X
X# The visible-bell variable determines whether nn will use an audible bell or
X# flash the screen when it alerts the user. This default setting causes nn to
X# use an audible bell.
X#
Xset visible-bell off
X
X# The default-distribution variable determines what distribution is used as
X# the default suggestion when posting articles in nn. This default setting
X# causes nn to suggest `world' distribution.
X#
Xset default-distribution world
X
X# The news-header variable specifies one or more extra header lines to be
X# included in articles posted from nn. This default setting specifies the text
X# for the `Organization' header.
X#
Xset news-header Organization: University of Rochester - Rochester, New York
X
X# The mark-overlap variable determines whether or not nn draws a line to
X# indicate the end of the overlapping region of text when paging through
X# articles. This default setting causes nn to draw such a line.
X#
Xset mark-overlap on
X
X# The quick-count variable determines the method nn uses to count the number
X# of unread articles in subscribed newsgroups. This default setting causes nn
X# to use a more accurate (but slightly slower) method than it would otherwise
X# use.
X#
Xset quick-count off
X
X# The enter-last-read-mode variable determines whether or not nn will let
X# you pick up the group presentation sequence where you left off the last time
X# you used the program. This default setting causes nn to "forget" which group
X# you read last and just start from the first subscribed group with unread
X# news in it; setting this variable to 2 would cause nn to ask if you want to
X# start from the last group you read, and setting it to 4 would cause nn to
X# start from the last group you read without confirmation.
X#
Xset enter-last-read-mode 0
X
X# The mail variable specifies a directory in which nn should look for new mail.
X# This default setting causes nn to look for new mail in your mail spool.
X#
Xset mail /usr/spool/mail/$(USER)
X
X
X
X### Explanations of nn's default behavior
X
X
X# The auto-select-subject variable determines whether or not nn will select
X# all articles with a given subject when one of them is selected from the menu.
X# By default the user chooses articles individually regardless of subject;
X# setting this variable to `on' will cause nn to automatically select all
X# articles with the same subject when each article is selected.
X#
Xset auto-select-subject off
X
X# The editor variable determines what text editor nn uses when replying to
X# or posting articles. By default nn uses the EDITOR environment variable, or
X# vi if that variable is not set; setting this variable to the name of another
X# program will cause that program to be used instead.
X#
Xunset editor
X
X# The confirm-auto-quit variable determines whether or not nn will ask for
X# confirmation before quitting after the last newsgroup has been read. By
X# default nn quits automatically; setting this variable to `on' will cause nn
X# to behave like rn in this respect (except that nn will not look for new
X# articles when it goes back to previous newsgroups).
X#
Xset confirm-auto-quit off
X
X# The auto-preview-mode variable determines whether or not nn will immediately
X# enter preview mode for each article as it is selected from the menu. By
X# default nn does not enter preview mode automatically.
X#
Xset auto-preview-mode off
X
X# The auto-read-mode-limit variable determines whether or not nn skips its
X# article selection phase. By default nn does not skip the selection phase;
X# setting this variable to a negative value will cause nn to behave like rn in
X# this respect by immediately entering reading mode.
X#
Xset auto-read-mode-limit 0
X
X# The scroll-last-lines variable determines whether nn scrolls the screen when
X# articles are being read or re-draws each screenful from the top. By default
X# nn re-draws each screenful; setting this variable to a negative value would
X# cause nn to scroll the screen (as rn does).
X#
Xset scroll-last-lines 0
X
X# The confirm-junk-seen variable determines whether or not nn will
X# automatically junk all articles that you have _not_ chosen from a menu. By
X# default nn junks such articles; setting this variable to `on' would cause nn
X# to ask before junking such articles.
X#
Xset confirm-junk-seen off
X
X# The overlap variable specifies the number of lines that should overlap from
X# one page to the next when paging through articles. By default nn uses a 2-
X# line overlapping region.
X#
Xset overlap 2
X
X# The quick-save variable determines whether or not nn asks for a file name
X# when saving articles. By default nn prompts for a file name; setting this
X# variable to `on' would cause nn to automatically use the default save file
X# for each newsgroup.
X#
Xset quick-save off
X
X# The silent variable determines how nn responds when there is no news in any
X# of the subscribed newsgroups. By default nn prints the message "No News";
X# setting this variable to `on' would suppress the printing of this message.
X#
Xset silent off
X
X# The subject-match-parts variable determines whether or not nn will consider
X# two articles to have the same subject if their subject lines match as far as
X# the first (differing) digit. This is most useful for groups such as
X# comp.sources.* and comp.binaries.*, where articles are posted in multiple
X# parts. By default nn does not match the subjects of the different parts;
X# setting this variable to `on' would cause it to do so.
X#
Xset subject-match-parts off
X
X# The layout variable controls the layout of nn's menus in the article
X# selection mode. See the man page for details, or just try out integers
X# between 0 and 4 to see the various layout options.
X#
Xset layout 1
X
X
X
X### Default group presentation sequence
X
X
X# The sequence command (which must appear at the END of the init file) tells nn
X# to interpret the rest of the file as a list of newsgroups; the order of this
X# list is the order in which they will be presented when the program is run.
X# The pseudo group name RC tells nn to present newsgroups in the order in
X# which they are listed in the user's .newsrc file.
X#
Xsequence
XRC
END_OF_FILE
if test 10349 -ne `wc -c <'msgs/12'`; then
echo shar: \"'msgs/12'\" unpacked with wrong size!
fi
# end of 'msgs/12'
fi
if test -f 'msgs/22' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'msgs/22'\"
else
echo shar: Extracting \"'msgs/22'\" \(8103 characters\)
sed "s/^X//" >'msgs/22' <<'END_OF_FILE'
XDelivery-Date: Tue, 19 Mar 91 19:47:53 +0100
X>From rock%speedway.Eng.Sun.COM@unido.uucp Tue Mar 19 19:47:52 1991
XReceived: from sapwdf by aix3 (AIX 3.1/UCB 5.61/4.03)
X id AA19215; Tue, 19 Mar 91 19:47:52 +0100
XReturn-Path: <rock%speedway.Eng.Sun.COM@unido.uucp>
XReceived: by sap-ag.de (5.52.1/SAP-1.0)
X id AA00634; Tue, 19 Mar 91 19:47:01 +0100
XReceived: from Sun.COM
X by unido.informatik.uni-dortmund.de with SMTP (5.65+/UNIDO-2.0.3.j)
X via EUnet for sapwdf
X id AA02252; Tue, 19 Mar 91 18:58:38 +0100
XReceived: from Eng.Sun.COM (zigzag-bb.Corp.Sun.COM) by Sun.COM (4.1/SMI-4.1)
X id AA17029; Tue, 19 Mar 91 09:56:53 PST
XReceived: from speedway.Eng.Sun.COM (speedway-2f-a) by Eng.Sun.COM (4.1/SMI-4.1)
X id AA19083; Tue, 19 Mar 91 10:06:28 PST
XReceived: from warp.Eng.Sun.COM by speedway.Eng.Sun.COM (4.1/SMI-4.1)
X id AA03269; Tue, 19 Mar 91 09:56:47 PST
XMessage-Id: <9103191756.AA03269@speedway.Eng.Sun.COM>
XNewsgroups: news.software.nn
XReferences: <2657@sapwdf.UUCP>
XOrganization: Sun Microsystems, Inc.
XFrom: rock%Eng.Sun.COM@unido (Bill "Rock" Petro - System Software Marketing)
XDate: Tue, 19 Mar 1991 09:56:46 PST
XX-Mailer: Mail User's Shell (7.2.2 3/2/90)
XTo: wohler@sap-ag.de
XSubject: Re: wanted: init files
X
X
Xset auto-select-subject
Xset check-db-update-time 1
Xset default-kill-select 130
Xset folder ~/mail
Xset expired-message-delay 0
Xset header-lines _FODN=S
Xset include-full-header
Xset keep-unsubscribed
Xset mail /usr/spool/mail/rock
Xset mail-format
Xset min-window 15
Xset new-group-action 4
Xset newsrc
Xset overlap 1
Xset pager less
Xset printer lpr
Xset mail-header Organization: Sun Microsystems, Inc.
Xset news-record /home/speedway/rock/mail/mail.record
Xset mark-overlap
Xset quick-count
Xset show-purpose-mode 2
Xset sort-mode 2
Xset spell-checker aspell
Xset wrap-header-margin
Xunset confirm-create
Xunset fsort
Xunset suggest-default-save
X
X#for mush
Xset mailer /home/speedway/rock/bin/mush_script
Xset mailer-pipe-input
X
Xmap menu ; command
Xmap menu j line+1
Xmap menu k line-1
Xmap menu A macro 1
Xmap menu J article 9
Xmap menu K article 10
Xmap menu ^Y article 25
Xmap menu ^J junk-articles
X
Xmap both ] next-group
Xmap both y overview
X
X
Xmap show ; command
Xmap show j line+1
Xmap show ^J line+1
Xmap show v page=0
Xmap show g page=1
Xmap show A select-subject
Xmap show select-subject
Xmap show unshar
X
Xon start-up
X overview
Xend
X
Xon entry rec.arts.startrek
X :local limit 300
Xend
X
X
X# speed below 9600 bps is considered slow.
Xset slow-speed 4800
X
Xon slow
X # running at or below slow-speed
X set confirm-auto-quit
X unset header-lines
X set confirm-entry
X set long-menu # added 5/14
X set show-purpose-mode 1
Xend
X
X#
X# Prefix key
X#
X
X# set echo-prefix-key # echo prefix key
X# make map ctl-x # create a new keymap named ctl-x
X# map ctl-x a macro 1 # bind macro 1 to ^X a
X# #map ctl-x l macro 2 # bind macro 2 to ^X l
X# #map ctl-x p macro 2 # bind macro 2 to ^X p
X# #map ctl-x g macro 3 # bind macro 3 to ^X g
X# map both ^X prefix ctl-x # bind it to ^X
X
Xdefine 1
X :admin
Xend
X
X# define 2
X# :admin l
X# end
X
Xdefine 2
X :patch ^J
Xend
X
X# map ctl-x p (
X# :patch
X# '
X# ''
X# )
X# define ctrl-x keymap
Xmake map ctl-x
Xmap show ^x prefix ctl-x
X
X
X# ^X g: get menu of articles with current subject
Xmap ctl-x g (
X goto-group "s" ""
X)
X
Xmap menu E (
X find "."
X )
X
Xmap both (
X prompt "Append group name to group sequence?"
X ?no return
X :!echo $G >> ~/.nn/init
X prompt "Edit init file?"
X ?no return
X :!vi ~/.nn/init
X redraw
X )
X
Xmap menu (
X :unset save-report
X save-full input yes
X ?menu '+'
X :set save-report
X )
X
Xmap menu (
X unsub yes
X )
X
X#define 2
X# mail yes "" "" no
X#end
X# bind to `S' key in reading mode:
X#map show S macro 2
X
Xmap both (
X prompt "Edit init file?"
X ?no return
X :!$EDITOR ~/.nn/init
X :load init
X redraw
X)
X
Xdefine 4
X :set header-lines *
Xend
Xmap both macro 4
Xmap show macro 4
X
Xdefine 5
X save-full "/usr/spool/mail/rock"
Xend
X# bind to ctrl-g key in reading mode:
Xmap show T macro 5
X
Xdefine 6
X prompt "Edit kill file?"
X ?no return
X :!sort ~/.nn/kill -o ~/.nn/kill ; $EDITOR ~/.nn/kill
X :compile
X redraw
Xend
X# bind to ctrl-k in both modes:
Xmap both ^K macro 6
X
Xdefine 7
X save-full "| enscript -Gr2 -bUseNet -Pflamingo"
X #save-full "| enscript -Gr2 -b'$:S' -Pflamingo"
Xend
X# bind to E key in reading mode:
Xmap show E macro 7
X
Xdefine 8 (
X prompt "Kill all unselected articles?"
X ?no return
X junk-articles 'U' yes
X junk-articles 'S' yes
X junk-articles '^J' '^J' '^J' 'R' yes
X)
X# bind to D in menu mode:
Xmap menu D macro 8
X
Xmap menu D (
X prompt "Kill all unselected articles?"
X ?no return
X junk-articles 'U' yes
X junk-articles 'S' yes
X junk-articles '^J' '^J' '^J' 'R' yes
X)
X
Xmap menu (
X prompt "Kill all unselected articles?"
X ?no return
X junk-articles 'U' yes
X junk-articles 'S' yes
X junk-articles '^J' '^J' '^J' 'R' yes
X 'N'
X)
X
Xdefine 9
X save-body '^?' '^M'
Xend
Xmap show W macro 97
X
Xmap menu ^U (
X unshar input yes '+'
X )
X
Xdefine 11
X next-article
X unshar '^?' '^M'
Xend
Xmap show macro 11
X
Xmap show (
X mail yes
X )
X
Xmap show x (
X save-full "+mw91"
X )
X
X#
X# end of macros
X#
X
X#- set subject matching for binaries/source groups
Xon entry alt.sources* comp.binaries* comp.sources*
X :local subject-match-offset 8
X :local subject-match-parts on
Xend
X
Xsequence
X<NEW (
X :set layout 1
X)
Xnews.software.nn +nn
Xnews.software.b +nn (
X :set layout 1
X)
Xcomp.mail.mush +mush.mail
Xsun.junk ~/ ()
Xsun.sales.se-times +setimes
Xsun.goodnews ()
Xsun.jobs ()
Xsun.sales.sun-monday +SALES ()
Xsun.sunflash +SALES ()
Xsun.invest ()
Xsun.allsales ()
Xsun.sw.arch ()
Xsun.unigram +unigram ()
Xsun.tstech ()
Xsun.tech ()
Xsun.sun-spots ()
Xcomp.sys.sun ()
Xalt.sys.sun
Xsun.stb +re.tips ()
Xsun.eng.mail-interest +mmmail-interest
Xsun.open-windows +re.ow
Xcomp.windows.open-look +re.ow
Xcomp.editors +re.vi
Xalt.cd-rom +Cdrom
Xsun.news-makers
Xsun.news-interest
Xsun.business.travel
Xcomp.newprod +newproducts
Xcomp.sources.sun ~/src/ (
X :set layout 3
X)
Xcomp.sources.unix ~/src/ ()
Xalt.sources.patches ~/src/ ()
Xcomp.sources.misc ~/src/ (
X :set layout 1
X)
Xcomp.sources.bugs ~/src/ ()
Xcomp.sources.d ~/News/ ()
Xalt.sources ~/src/
Xalt.sources.d
Xalt.sources.wanted
Xcomp.sources.mac ~/src/mac/
Xcomp.binaries.mac ~/News/
Xrec.arts.startrek +startrek
Xrec.arts.startrek.info +startrek
Xalt.startrek.creative +startrek
Xrec.humor.funny +funny (
X find "."
X)
Xrec.arts.movies.reviews +Reviews
Xsun.film +movies
Xrec.arts.movies +movies
Xrec.arts.cinema +movies
Xalt.cult-movies +movies
Xrec.arts.tv
Xba.food +food
Xcomp.infosystems
Xcomp.lang.perl
Xcomp.sys.laptops +laptops
Xrec.mag.otherrealms +OR
Xalt.fan.dave_barry ~/News/barry
Xnews.announce.newgroups
Xnews.announce.important
Xba.
Xca.environment.earthquakes
Xca.
Xcomp.unix.ultrix +dec
Xcomp.unix.aux +aux
Xcomp.sys.dec +dec
Xcomp.sys.m88k
Xsoc.culture.british +british
Xcomp.editors
Xcomp.unix.questions +re.tips
Xcomp.unix.shell
Xcomp.unix.wizards
Xalt.unix.wizards
Xcomp.emacs +emacs
Xsun.emacs +emacs
Xgnu. +emacs
Xsun.mac-users +Mac
Xcomp.binaries.hypercard ~/News/
Xcomp.sys.mac.announce +Mac
Xcomp.sys.mac.digest +Mac
Xcomp.sys.mac.comm +Mac
Xcomp.sys.mac.hypercard +Mac
Xcomp.sys.mac +Mac
Xcomp.sys.mac.system +Mac
Xcomp.sys.mac.hardware +Mac
Xcomp.sys.mac.apps +Mac
Xcomp.sys.mac.misc +Mac
Xcomp.sys.mac.games +Mac
Xcomp.sys.mac.wanted +Mac
Xalt.hypertext +hyper
X>soc.religion.christian +religion
X>talk.religion.misc +religion
X
X# map show Y (
X# :set default-save-file |mush\
X# save-full input
X# :set default-save-file ~/tmp/Mail/
X# )
X
X# for patch 12
X# on [ -n "`tty | grep ttyp`" ]
X# unset flow-control
X# else
X# set flow-control
X# end
X--
X Bill Petro {decwrl,hplabs,ucbvax}!sun!Eng!rock
X"UNIX for the sake of the kingdom of heaven" Matthew 19:12
END_OF_FILE
echo shar: 12 control characters may be missing from \"'msgs/22'\"
if test 8103 -ne `wc -c <'msgs/22'`; then
echo shar: \"'msgs/22'\" unpacked with wrong size!
fi
# end of 'msgs/22'
fi
echo shar: End of archive 7 \(of 9\).
cp /dev/null ark7isdone
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads