Thread View: news.software.nn
1 messages
1 total messages
Started by Kristian Koehntopp
Sun, 03 Oct 1993 13:48
Making nn user friendly (My .nn/init)
Author: Kristian Koehntopp
Date: Sun, 03 Oct 1993 13:48
Date: Sun, 03 Oct 1993 13:48
371 lines
11358 bytes
11358 bytes
There has been some discussion here on how to make nn more user
friendly. From my point of view many complaints are not caused
by deficiencies of the program, but from bad configurations.
nn is not a simple nor is it a small program. nn *can* be used
with only four keys: Cursor up and down (or more ergonomically:
slash and comma, if you happen to have an english keyboard
layout), dot and space. But one cannot expect to manage groups
with 400+ articles a day this way.
nn has many user settable options that control its runtime
behavior. Most of them are very useful, easy to understand and
*off* by default. So to really make use of nn, you *have* to
have an initialization file. These options are off not to make
your life more difficult, but to provide upward compatibility:
Newer versions of nn should change their behavior only upon
request by the user.
In an attempt to make it easier for you to customize nn to your
specific needs I provide my personal .nn/init with some
additional comments.
Yours,
Kristian
------------------------------------------------------------------------------
#
# This file is for customization of nn. It should go into
# $HOME/.nn/init, if you are a user of into LIBDIR/init, if you
# are an operator and want to provide an init file for all
# users. Users can still override a system wide init by
# installing an own init file.
#
# To understand what is going on, read the nn manual,
# specifically the chapters
#
# VARIABLES AND OPTIONS
# CUSTOMIZED ARTICLE HEADER PRESENTATION
# GROUP PRESENTATION SEQUENCE
#
# You can read the manual with nn. Just type the named command
#
# :man
#
# when in nn (That is, type a :, cursor moves down into a
# command line, type the named command man and hit return).
# You get a regular article selection menu with chapter headings
# of the nn manual. Browse through them and make sure you have
# read and understood at least the named chapters.
#
# Setting some variables.
#
# auto-select-closed
#
# When selecting consolidated, closed subjects, all articles
# under the closed subjects should be selected. If only the
# unread articles should be selected, set this to 1.
set auto-select-closed 2
# backup
#
# Make a backup of the .newsrc-file under the name .newsrc.bak.
# The .newsrc-file records which articles have been seen and
# marked "read" by you.
# Setting this to "off" saves you disk space, if your quota is
# tight.
set backup on
# confirm-auto-quit
#
# Set this to on, if you want nn to ask back when you are
# finished with news reading
set confirm-auto-quit off
# consolidated-menu
#
# In consolidated-menu-mode articles with the same or a similar
# subject are collapsed into a single line in article selection
# mode. There is a seperate chapter about consolidated menus in
# the manual.
set consolidated-menu on
# data-bits
#
# If you are reading articles in ISO-8859-1 or another character
# set featuring all 8 bits of a byte, you should set this:
set data-bits 8
# default-distribution world
#
# set the default distribution of an article. A distribution
# restricts the forwarding of an article to a certain region.
# Distributions are orthogonal to newsgroups, which restrict
# the forwarding of the article to a certain special interest
# group.
# For historical reasons distributions do not really work (and
# they have never) so it is useless to use them.
set default-distribution world
# enter-last-read-mode
#
# Upon startup nn can present you the first of all newsgroups
# or the newsgroup where you left nn the last time.
# Set this to 0 to begin at the beginning.
set enter-last-read-mode 0
# entry-report-limit
#
# If there are many new articles in a group and you are on a
# slow system, there is a short delay while nn collects all
# information to build an article selection screen.
# nn has the ability to show a screen like "### new articles,
# hang on" to inform you about this. This information is
# necessary for large groups, but annoying for small groups.
# Set the threshold:
set entry-report-limit 200
# expired-message-delay
#
# If the news transport (cnews or INN for example) has expired
# or canceled an article and the nnmaster program has not yet
# been informed of the fact, there is the possibility that nn
# presents you with the header of an article which has already
# been deleted. In this case nn flashes a short message in the
# last line of the screen.
# How many seconds should nn delay to let you read this message?
# -1 = no message
# 0 = no delay
set expired-message-delay 0
# fsort
#
# nn lets you save selected articles into a file (a so called
# folder) with the "S" command. nn can process such folders as
# newsgroups, that is, it can build article selection screens
# and article display screens from them, if you "G"oto the
# folder (By typing ./foldername or +foldername).
#
# Setting fsort to on will present the contents of the folder in
# the selected sort order. Setting it to off switches to
# physical order.
set fsort on
# header-lines
#
# With header lines of the article shall be shown to you?
set header-lines _FOD=SnWKYL
# include-art-id
#
# When quoting an article, qoute the message-id?
set include-art-id off
# include-full-header
#
# When quoting an article, quote all the header lines?
set include-full-header off
# include-mark-blank-lines
#
# When quoting an article, mark quoted lines as quotes also?
# Some news transports reject articles with more quoted lines
# than new lines.
set include-mark-blank-lines on
# keep-unsubscribed
#
# Keep the names of unsubscribed newsgroups in your .newsrc?
# This is necessary for some settings of new-group-action, but
# generally not desireable.
set keep-unsubscribed off
# mail
#
# nn biffs you if you have new mail. Where is your incoming
# mailbox?
set mail /usr/spool/mail/$(LOGNAME)
# mark-overlap
#
# When paging through an article, nn can mark the first/last
# overlapping line. Shall it?
set mark-overlap on
# mark-overlap-shading
#
# The other lines of an overlap can be shaded, if your $TERM has
# the necessary display modes. Shall it?
set mark-overlap-shading off
# overlap
#
# How many lines shall overlap?
set overlap 2
# re-layout
#
# In article selection mode, nn can present articles in
# alphabetical or lexical order by subject. nn knows about
# replies and sorts them correctly. nn can mark replies (and
# the reply generation number) in several ways (see the manual
# for an overview). Select here, how nn should format the
# replies:
set re-layout 1
# record
#
# If set, the name of a file (a folder, to be exact), where all
# your postings and mails are recorded.
set record ~/News/outgoing
# save-closed-mode
#
# Select, which articles of a selected, closed subject are to be
# saved. See manual for details.
set save-closed-mode 14
# save-counter
#
# When saving articles, you are asked for a name. If you answer
# "name", all articles are saved to a single folder named
# "name". If you answer "name.*", all articles are saved to
# individual files. The asterisk is replaced with an increasing
# counter. How should this counter be formatted (C-printf style
# format string)
set save-counter %02d
# show-purpose-mode
#
# When entering a newsgroup nn shows a short one-line
# description of this group. nn can show it (0) never, (1) once
# or (2) every time you enter the group.
set show-purpose-mode 2
# sort
#
# Shall the articles be shown sorted?
set sort on
# sort-mode
#
# Sort by what?
# 0 arrival, 1 subject, 2 lexical, 3 age, 4 sender
set sort-mode 2
# news-header
# mail-header
#
# You are free to add lines to the header of outgoing news
# articles or mails. This could be a Reply-To-Line or any other
# header line.
#
# I use this to put an explicit copyright notice to my
# articles.
#
set news-header X-Copyright: (C) Copyright 1993 Kristian Koehntopp -- All rights reserved.
set mail-header X-Copyright: (C) Copyright 1993 Kristian Koehntopp -- All rights reserved.
##############################################################################
#
# The keyboard mapping of nn can be completely customized.
# I prefer the original mapping which I have enhanced with some
# local macros.
#
# In menu mode: Cursor left goes back a page.
map menu #left page-1
# In menu mode: Cursor right advances a page.
map menu #right page+1
# In menu mode: Control-a selects all articles.
map menu ^a (
find "."
)
# In menu mode: "=" searches for a specific subject (original
# mapping). I map "_" to search for a specific sender.
map menu _ (
:set select-on-sender
find input
:unset select-on-sender
)
# In menu mode: "'" to toggle preview-mode.
map menu ' (
:toggle auto-preview-mode
)
# In show-mode:
# Map cursor left and cursor right to page through the article.
map show #left back-article
map show #right next-article
# Map ^o so that the current article is sent to me by mail.
map show ^o (
mail yes "" "" no
)
# When reading an article I often want to see older
# articles that have the same subject.
# I map "B" ("back") to do so. This is an example for
# a macro as well.
#
# Map macro
map show B macro 99
# and define it.
define 99
goto-group " " "s"
'*' 'Z'
end
# These keys are active in menu and show mode:
# ^k to sort, edit and compile the kill file.
map both ^k (
:!sort ~/.nn/kill -o ~/.nn/kill; $EDITOR ~/.nn/kill
:compile
)
# In Source- and Binary-Groups I want a special layout: The
# subjects are long here and the sender does not matter.
on entry comp.sources* alt.sources* sub.sources* eunet.sources* \
comp.binaries*
:local layout 2
:local re-layout 1
end
#
# Define a presentation sequence. See the manual!
#
sequence
# local groups in german language
local
tp.sysinfo
tp.forum
tp
# remote locals
syd
ifi
cau
theo
kiel
ums
kso
# nationwide
de
fundgrube
gate.maus
maus
fido
znet
tnet
pm-netz
ct
# worldwide
comp
gnu
news
rec
sci
soc
talk
alt
bitnet
--
Kristian Koehntopp, Harmsstrasse 98, 24114 Kiel 1, +49 431 676689
Aktuelle .signature aus gegebenem Anlass (noch 1 Tag):
"Zaehne durch und zu."
-- ilka-k@pz-oekosys.uni-kiel.d400.de (Ilka Katofsky)
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