2001-05-26 04:18:54 +00: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 03:34:06 +00:00
|
|
|
#
|
|
|
|
# To make sure a value is not enabled, use "unset <option>"
|
2001-05-26 04:18:54 +00:00
|
|
|
|
|
|
|
# Use regular expressions by default
|
|
|
|
# set regexp
|
|
|
|
|
|
|
|
# Constantly update the cursor position
|
|
|
|
# set const
|
|
|
|
|
2002-01-25 21:59:02 +00:00
|
|
|
# Show column position relative to the current line, not the whole file
|
|
|
|
# set relative
|
|
|
|
|
2001-05-26 04:18:54 +00:00
|
|
|
# Use cut to end of line with ^K by default
|
|
|
|
# set cut
|
|
|
|
|
|
|
|
# Use Auto-indentation
|
|
|
|
# set autoindent
|
|
|
|
|
|
|
|
# Don't follow symlinks when writing files
|
|
|
|
# set nofollow
|
|
|
|
|
2001-09-19 03:19:43 +00:00
|
|
|
# Set operating directory (chroot of sorts)
|
|
|
|
# set operatingdir "~"
|
|
|
|
|
2001-07-19 22:03:51 +00:00
|
|
|
# Use Pico Compatibility mode for the shortcut lists and search text
|
2001-05-26 04:18:54 +00:00
|
|
|
# set pico
|
|
|
|
|
|
|
|
# Use this value instead of the default
|
|
|
|
# set fill -8
|
|
|
|
|
2001-10-02 23:57:31 +00:00
|
|
|
# Use this tab size instead of the default
|
2002-01-19 16:52:34 +00:00
|
|
|
# set tabsize 4
|
2001-10-02 23:57:31 +00:00
|
|
|
|
2001-05-26 04:18:54 +00:00
|
|
|
# Use this spelling checker instead of the default one
|
|
|
|
# set speller aspell
|
|
|
|
|
|
|
|
# Save automatically on exit, don't prompt
|
|
|
|
# set tempfile
|
|
|
|
|
|
|
|
# Disallow file modification, why would you want this in an rc file? ;)
|
|
|
|
# set view
|
|
|
|
|
|
|
|
# Don't wrap text at all
|
|
|
|
# set nowrap
|
|
|
|
|
|
|
|
# Don't display the help lists at the bottom of the screen
|
|
|
|
# set nohelp
|
|
|
|
|
2001-07-19 22:03:51 +00:00
|
|
|
# Allow nano to be suspended with ^Z
|
2001-05-26 04:18:54 +00:00
|
|
|
# set suspend
|
|
|
|
|
2001-09-22 19:02:04 +00:00
|
|
|
# Use smooth scrolling as the default
|
|
|
|
# set smooth
|
|
|
|
|
2002-02-15 19:17:02 +00:00
|
|
|
# Use alternate keypad routines
|
|
|
|
# set keypad
|
|
|
|
|
|
|
|
# Don't convert files from DOS/Mac format
|
|
|
|
# set noconvert
|
|
|
|
|
2001-07-19 22:03:51 +00:00
|
|
|
# Allow multiple file buffers (using ^R inserts into separate buffer)
|
2001-07-14 19:32:47 +00:00
|
|
|
# You must have configured with --enable-multibuffer or --enable-extra for
|
|
|
|
# this to work
|
|
|
|
#
|
|
|
|
# set multibuffer
|
2001-11-29 02:42:27 +00:00
|
|
|
|
2002-03-03 22:52:52 +00:00
|
|
|
# Use this as the quoting string. You shouldn't need to change this,
|
|
|
|
# but...... default "> "
|
|
|
|
# set quotestr "// "
|
|
|
|
|
2001-11-29 02:42:27 +00:00
|
|
|
#
|
|
|
|
# Color setup
|
2002-01-19 16:52:34 +00:00
|
|
|
# Format: color foreground,background "regex" ["regex"...]
|
2001-11-29 02:42:27 +00:00
|
|
|
#
|
|
|
|
# Legal colors are: white, black, red, blue, green, yellow, purple, cyan
|
2001-12-05 17:51:02 +00:00
|
|
|
# You may use the prefix "bright" to mean a stronger color highlight
|
2001-11-29 02:42:27 +00:00
|
|
|
#
|
2002-01-19 16:52:34 +00:00
|
|
|
# To use multi-line regexes use the start="regex" end="regex" format.
|
|
|
|
#
|
2001-11-29 02:42:27 +00: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-01-19 16:52:34 +00:00
|
|
|
#color brightred "float " "char " "int " "void " "NULL" "[A-Z_]\{2,\}"
|
|
|
|
#color brightred "static" "const" "[\ ]struct" "^struct" "if " "while[\ \n\(]"
|
|
|
|
#color brightred "do[\ \n\(]" "else[\ \n]" "case " "switch " "break;"
|
|
|
|
#color brightcyan "#define" "#include" "#ifn*def" "#endif" "#elif" "#else"
|
2001-11-29 02:42:27 +00:00
|
|
|
|
2002-01-19 16:52:34 +00:00
|
|
|
#You will in general want your comments and strings to come last, becase
|
|
|
|
#syntax highlighting rules will be applied in the order they are read in
|
2001-11-29 02:42:27 +00:00
|
|
|
|
2002-01-19 16:52:34 +00:00
|
|
|
#color brightyellow "<.*[^=\ ]*>" "\".*\""
|
|
|
|
#color brightblue "//.*"
|
|
|
|
#color brightblue start="/\*.*" end="\*/"
|