2001-05-26 08:18:54 +04:00
|
|
|
# Sample initialization file for GNU nano
|
|
|
|
# Please note that you must have configured nano with
|
|
|
|
# --enable-nanorc for this file to be read!
|
2002-01-26 06:34:06 +03:00
|
|
|
#
|
|
|
|
# To make sure a value is not enabled, use "unset <option>"
|
2001-05-26 08:18:54 +04:00
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# Use auto-indentation
|
|
|
|
# set autoindent
|
|
|
|
|
|
|
|
# Backup files to filename~
|
|
|
|
# set backup
|
2001-05-26 08:18:54 +04:00
|
|
|
|
|
|
|
# Constantly update the cursor position
|
|
|
|
# set const
|
|
|
|
|
|
|
|
# Use cut to end of line with ^K by default
|
|
|
|
# set cut
|
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# Use this value instead of the default
|
2002-07-19 05:08:59 +04:00
|
|
|
# An out-of-range negative value can make nano die complaining that the
|
|
|
|
# screen is too small
|
2002-06-29 02:45:14 +04:00
|
|
|
# set fill -8
|
|
|
|
|
|
|
|
# Use alternate keypad routines
|
|
|
|
# set keypad
|
|
|
|
|
|
|
|
# Allow multiple file buffers (using ^R inserts into separate buffer)
|
|
|
|
# You must have configured with --enable-multibuffer or --enable-extra
|
|
|
|
# for this to work
|
|
|
|
#
|
|
|
|
# set multibuffer
|
|
|
|
|
|
|
|
# Don't convert files from DOS/Mac format
|
|
|
|
# set noconvert
|
2001-05-26 08:18:54 +04:00
|
|
|
|
|
|
|
# Don't follow symlinks when writing files
|
|
|
|
# set nofollow
|
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# Don't display the help lists at the bottom of the screen
|
|
|
|
# set nohelp
|
|
|
|
|
|
|
|
# Don't wrap text at all
|
|
|
|
# set nowrap
|
|
|
|
|
2001-09-19 07:19:43 +04:00
|
|
|
# Set operating directory (chroot of sorts)
|
|
|
|
# set operatingdir "~"
|
|
|
|
|
2001-07-20 02:03:51 +04:00
|
|
|
# Use Pico Compatibility mode for the shortcut lists and search text
|
2001-05-26 08:18:54 +04:00
|
|
|
# set pico
|
|
|
|
|
2002-07-19 05:08:59 +04:00
|
|
|
# The email-quote string. This is a "regular expression" if your
|
|
|
|
# system supports them, otherwise a literal string. Default
|
|
|
|
# set quotestr "^([ \t]*[|>:}#])+" if you have regexps, otherwise
|
|
|
|
# set quotestr "> ".
|
|
|
|
# You can get old nano quoted-justify behavior via:
|
|
|
|
# set quotestr "(> )+"
|
2001-05-26 08:18:54 +04:00
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# Do regular expression searches by default
|
|
|
|
# set regexp
|
|
|
|
|
|
|
|
# Use smooth scrolling as the default
|
|
|
|
# set smooth
|
2001-10-03 03:57:31 +04:00
|
|
|
|
2001-05-26 08:18:54 +04:00
|
|
|
# Use this spelling checker instead of the default one
|
|
|
|
# set speller aspell
|
|
|
|
|
2001-07-20 02:03:51 +04:00
|
|
|
# Allow nano to be suspended with ^Z
|
2001-05-26 08:18:54 +04:00
|
|
|
# set suspend
|
|
|
|
|
2002-07-19 05:08:59 +04:00
|
|
|
# Use this tab size instead of the default; it must be greater than 0
|
2002-06-29 02:45:14 +04:00
|
|
|
# set tabsize 4
|
2002-02-15 22:17:02 +03:00
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# Save automatically on exit, don't prompt
|
|
|
|
# set tempfile
|
2001-11-29 05:42:27 +03:00
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# Disallow file modification, why would you want this in an rc file? ;)
|
|
|
|
# set view
|
2002-03-04 01:52:52 +03:00
|
|
|
|
2001-11-29 05:42:27 +03:00
|
|
|
# Color setup
|
2002-05-04 07:47:33 +04:00
|
|
|
# Format:
|
|
|
|
# syntax "short description" ["filename regex" ...]
|
|
|
|
# color foreground,background "regex" ["regex"...]
|
2001-11-29 05:42:27 +03:00
|
|
|
#
|
|
|
|
# Legal colors are: white, black, red, blue, green, yellow, purple, cyan
|
2001-12-05 20:51:02 +03:00
|
|
|
# You may use the prefix "bright" to mean a stronger color highlight
|
2001-11-29 05:42:27 +03:00
|
|
|
#
|
2002-01-19 19:52:34 +03:00
|
|
|
# To use multi-line regexes use the start="regex" end="regex" format.
|
|
|
|
#
|
2001-11-29 05:42:27 +03:00
|
|
|
# If your system supports transparency, not specifying a background
|
|
|
|
# color will use a transparent color. If you don't want this, be sure
|
|
|
|
# to set the background color to black or white.
|
2002-06-29 02:45:14 +04:00
|
|
|
|
2002-07-19 05:08:59 +04:00
|
|
|
# syntax "c-file" ".*\.c$" ".*\.h$"
|
2002-05-18 07:13:03 +04:00
|
|
|
# color red "\<[A-Z_]\{2,\}\>"
|
|
|
|
# color green "\<float\>" "\<char\>" "\<int\>" "\<void\>"
|
|
|
|
# color green "\<static\>" "\<const\>" "\<struct\>"
|
|
|
|
# color brightyellow "\<if\>" "\<while\>" "\<do\>" "\<else\>" "\<case\>" "\<switch\>"
|
|
|
|
# color brightcyan "#define" "#include" "#ifn*def" "#endif"
|
|
|
|
# color brightcyan "#elif" "#else" "#if"
|
2002-05-04 08:27:06 +04:00
|
|
|
|
2002-06-29 02:45:14 +04:00
|
|
|
# You will in general want your comments and strings to come last,
|
|
|
|
# because syntax highlighting rules will be applied in the order they are
|
|
|
|
# read in
|
2002-05-04 08:27:06 +04:00
|
|
|
|
2002-05-18 07:13:03 +04:00
|
|
|
# color brightyellow "<[^= ]*>" "\"[^"]*\""
|
2002-05-04 08:27:06 +04:00
|
|
|
# color brightblue "//.*"
|
2002-07-19 05:08:59 +04:00
|
|
|
# color brightblue start="/\*" end="\*/"
|
2002-05-04 08:27:06 +04:00
|
|
|
|
|
|
|
# For this you will probably want to set your editor to "nano -Y mutt"
|
2002-06-29 02:45:14 +04:00
|
|
|
|
2002-05-04 08:27:06 +04:00
|
|
|
# syntax "mutt"
|
|
|
|
# color green "^>.*"
|