wok-next annotate nano/stuff/nanorc @ rev 11771

zsh: does not support bb :(
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 23 14:41:48 2012 +0100 (2012-02-23)
parents
children
rev   line source
pankso@19 1 ## /etc/nanorc: system-wide initialization file for GNU nano
pankso@19 2 ## Well know text editor on SliTaz GNU/linux. ~/.nanorc for
pankso@19 3 ## personal config file.
pankso@19 4 ##
pankso@19 5 ## To make sure a value is not enabled, use "unset <option>"
pankso@19 6 ##
pankso@19 7 ## For the options that take parameters, the default value is given.
pankso@19 8 ## Other options are unset by default.
pankso@19 9 ##
pankso@19 10 ## Quotes inside string parameters don't have to be escaped with
pankso@19 11 ## backslashes. The last double quote in the string will be treated as
pankso@19 12 ## its end. For example, for the "brackets" option, ""')>]}" will match
pankso@19 13 ## ", ', ), >, ], and }.
pankso@19 14
pankso@19 15 ## Use auto-indentation.
pankso@19 16 # set autoindent
pankso@19 17
pankso@19 18 ## Backup files to filename~.
pankso@19 19 # set backup
pankso@19 20
pankso@19 21 ## The directory to put unique backup files in.
pankso@19 22 # set backupdir ""
pankso@19 23
pankso@19 24 ## Do backwards searches by default.
pankso@19 25 # set backwards
pankso@19 26
pankso@19 27 ## Use bold text instead of reverse video text.
pankso@19 28 # set boldtext
pankso@19 29
pankso@19 30 ## The characters treated as closing brackets when justifying
pankso@19 31 ## paragraphs. They cannot contain blank characters. Only closing
pankso@19 32 ## punctuation, optionally followed by closing brackets, can end
pankso@19 33 ## sentences.
pankso@19 34 ##
pankso@19 35 # set brackets ""')>]}"
pankso@19 36
pankso@19 37 ## Do case sensitive searches by default.
pankso@19 38 # set casesensitive
pankso@19 39
pankso@19 40 ## Constantly display the cursor position in the statusbar. Note that
pankso@19 41 ## this overrides "quickblank".
pankso@19 42 # set const
pankso@19 43
pankso@19 44 ## Use cut to end of line by default.
pankso@19 45 # set cut
pankso@19 46
pankso@19 47 ## Set the line length for wrapping text and justifying paragraphs.
pankso@19 48 ## If fill is 0 or less, the line length will be the screen width less
pankso@19 49 ## this number.
pankso@19 50 ##
pankso@19 51 # set fill -8
pankso@19 52
pankso@19 53 ## Enable ~/.nano_history for saving and reading search/replace strings.
pankso@19 54 set historylog
pankso@19 55
pankso@19 56 ## The opening and closing brackets that can be found by bracket
pankso@19 57 ## searches. They cannot contain blank characters. The former set must
pankso@19 58 ## come before the latter set, and both must be in the same order.
pankso@19 59 ##
pankso@19 60 # set matchbrackets "(<[{)>]}"
pankso@19 61
pankso@19 62 ## Use the blank line below the titlebar as extra editing space.
pankso@19 63 # set morespace
pankso@19 64
pankso@19 65 ## Enable mouse support, if available for your system. When enabled,
pankso@19 66 ## mouse clicks can be used to place the cursor, set the mark (with a
pankso@19 67 ## double click), and execute shortcuts. The mouse will work in the X
pankso@19 68 ## Window System, and on the console when gpm is running.
pankso@19 69 ##
pankso@19 70 set mouse
pankso@19 71
pankso@19 72 ## Allow multiple file buffers (inserting a file will put it into a
pankso@19 73 ## separate buffer). You must have configured with --enable-multibuffer
pankso@19 74 ## for this to work.
pankso@19 75 ##
pankso@19 76 # set multibuffer
pankso@19 77
pankso@19 78 ## Don't convert files from DOS/Mac format.
pankso@19 79 # set noconvert
pankso@19 80
pankso@19 81 ## Don't follow symlinks when writing files.
pankso@19 82 # set nofollow
pankso@19 83
pankso@19 84 ## Don't display the helpful shortcut lists at the bottom of the screen.
pankso@19 85 # set nohelp
pankso@19 86
pankso@19 87 ## Don't add newlines to the ends of files.
pankso@19 88 # set nonewlines
pankso@19 89
pankso@19 90 ## Don't wrap text at all.
pankso@19 91 # set nowrap
pankso@19 92
pankso@19 93 ## Set operating directory. nano will not read or write files outside
pankso@19 94 ## this directory and its subdirectories. Also, the current directory
pankso@19 95 ## is changed to here, so any files are inserted from this dir. A blank
pankso@19 96 ## string means the operating directory feature is turned off.
pankso@19 97 ##
pankso@19 98 # set operatingdir ""
pankso@19 99
pankso@19 100 ## Preserve the XON and XOFF keys (^Q and ^S).
pankso@19 101 # set preserve
pankso@19 102
pankso@19 103 ## The characters treated as closing punctuation when justifying
pankso@19 104 ## paragraphs. They cannot contain blank characters. Only closing
pankso@19 105 ## punctuation, optionally followed by closing brackets, can end
pankso@19 106 ## sentences.
pankso@19 107 ##
pankso@19 108 # set punct "!.?"
pankso@19 109
pankso@19 110 ## Do quick statusbar blanking. Statusbar messages will disappear after
pankso@19 111 ## 1 keystroke instead of 26. Note that "const" overrides this.
pankso@19 112 ##
pankso@19 113 # set quickblank
pankso@19 114
pankso@19 115 ## The email-quote string, used to justify email-quoted paragraphs.
pankso@19 116 ## This is an extended regular expression if your system supports them,
pankso@19 117 ## otherwise a literal string. Default:
pankso@19 118 # set quotestr "^([ ]*[#:>\|}])+"
pankso@19 119 ## if you have extended regular expression support, otherwise:
pankso@19 120 # set quotestr "> "
pankso@19 121
pankso@19 122 ## Fix Backspace/Delete confusion problem.
pankso@19 123 # set rebinddelete
pankso@19 124
pankso@19 125 ## Fix numeric keypad key confusion problem.
pankso@19 126 # set rebindkeypad
pankso@19 127
pankso@19 128 ## Do extended regular expression searches by default.
pankso@19 129 # set regexp
pankso@19 130
pankso@19 131 ## Make the Home key smarter. When Home is pressed anywhere but at the
pankso@19 132 ## very beginning of non-whitespace characters on a line, the cursor
pankso@19 133 ## will jump to that beginning (either forwards or backwards). If the
pankso@19 134 ## cursor is already at that position, it will jump to the true
pankso@19 135 ## beginning of the line.
pankso@19 136 # set smarthome
pankso@19 137
pankso@19 138 ## Use smooth scrolling as the default.
pankso@19 139 # set smooth
pankso@19 140
pankso@19 141 ## Use this spelling checker instead of the internal one. This option
pankso@19 142 ## does not properly have a default value.
pankso@19 143 ##
pankso@19 144 # set speller "aspell -x -c"
pankso@19 145
pankso@19 146 ## Allow nano to be suspended.
pankso@19 147 # set suspend
pankso@19 148
pankso@19 149 ## Use this tab size instead of the default; it must be greater than 0.
pankso@19 150 # set tabsize 8
pankso@19 151
pankso@19 152 ## Convert typed tabs to spaces.
pankso@19 153 # set tabstospaces
pankso@19 154
pankso@19 155 ## Save automatically on exit, don't prompt.
pankso@19 156 # set tempfile
pankso@19 157
pankso@19 158 ## Disallow file modification. Why would you want this in an rcfile? ;)
pankso@19 159 # set view
pankso@19 160
pankso@19 161 ## The two single-column characters used to display the first characters
pankso@19 162 ## of tabs and spaces. 187 in ISO 8859-1 (0000BB in Unicode) and 183 in
pankso@19 163 ## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
pankso@19 164 # set whitespace " "
pankso@19 165
pankso@19 166 ## Detect word boundaries more accurately by treating punctuation
pankso@19 167 ## characters as parts of words.
pankso@19 168 # set wordbounds
pankso@19 169
pankso@19 170
pankso@19 171 ## Color setup
pankso@19 172 ##
pankso@19 173 ## Format:
pankso@19 174 ##
pankso@19 175 ## syntax "short description" ["filename regex" ...]
pankso@19 176 ##
pankso@19 177 ## The "none" syntax is reserved; specifying it on the command line is
pankso@19 178 ## the same as not having a syntax at all. The "default" syntax is
pankso@19 179 ## special: it takes no filename regexes, and applies to files that
pankso@19 180 ## don't match any other syntax's filename regexes.
pankso@19 181 ##
pankso@19 182 ## color foreground,background "regex" ["regex"...]
pankso@19 183 ## or
pankso@19 184 ## icolor foreground,background "regex" ["regex"...]
pankso@19 185 ##
pankso@19 186 ## "color" will do case sensitive matches, while "icolor" will do case
pankso@19 187 ## insensitive matches.
pankso@19 188 ##
pankso@19 189 ## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
pankso@19 190 ## For foreground colors, you may use the prefix "bright" to get a
pankso@19 191 ## stronger highlight.
pankso@19 192 ##
pankso@19 193 ## To use multi-line regexes, use the start="regex" end="regex"
pankso@19 194 ## [start="regex" end="regex"...] format.
pankso@19 195 ##
pankso@19 196 ## If your system supports transparency, not specifying a background
pankso@19 197 ## color will use a transparent color. If you don't want this, be sure
pankso@19 198 ## to set the background color to black or white.
pankso@19 199 ##
pankso@19 200 ## If you wish, you may put your syntaxes in separate files. You can
pankso@19 201 ## make use of such files (which can only include "syntax", "color", and
pankso@19 202 ## "icolor" commands) as follows:
pankso@19 203 ##
pankso@19 204 ## include "/path/to/syntax_file.nanorc"
pankso@19 205 ##
pankso@19 206 ## Unless otherwise noted, the name of the syntax file (without the
pankso@19 207 ## ".nanorc" extension) should be the same as the "short description"
pankso@19 208 ## name inside that file. These names are kept fairly short to make
pankso@19 209 ## them easier to remember and faster to type using nano's -Y option.
pankso@19 210 ##
pankso@19 211 ## All regexes should be extended regular expressions.
pankso@19 212
pankso@19 213
pankso@19 214 ## Nanorc files
pankso@19 215 include "/usr/share/nano/nanorc.nanorc"
pankso@19 216
pankso@19 217 ## C/C++
pankso@19 218 include "/usr/share/nano/c.nanorc"
pankso@19 219
pankso@19 220 ## Config file - By SliTaz
pankso@19 221 syntax "conf" "\.?conf$"
pankso@19 222 ## Keywords
pankso@19 223 icolor brightgreen "="
pankso@19 224 ## Comments
pankso@19 225 icolor cyan "^[[:space:]]*#.*$"
pankso@19 226
pankso@19 227 ## HTML - With modification for SliTaz.
pankso@19 228 #include "/usr/share/nano/html.nanorc"
pankso@19 229 syntax "HTML" "\.html$"
pankso@19 230 color brightblue start="<" end=">"
pankso@19 231 color red "&[^; ]*;"
pankso@19 232 color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->"
pankso@19 233 color brightcyan start="<meta" end=">" start="<link" end=">"
pankso@19 234 color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>"
pankso@19 235 color yellow "<ul>|</ul>|<hr>|<hr />"
pankso@19 236 color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style"
pankso@19 237 color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>"
pankso@19 238
pankso@19 239 ## TeX
pankso@19 240 include "/usr/share/nano/tex.nanorc"
pankso@19 241
pankso@19 242 ## Quoted emails (under e.g. mutt)
pankso@19 243 include "/usr/share/nano/mutt.nanorc"
pankso@19 244
pankso@19 245 ## Patch files
pankso@19 246 include "/usr/share/nano/patch.nanorc"
pankso@19 247
pankso@19 248 ## Manpages
pankso@19 249 # include "/usr/share/nano/man.nanorc"
pankso@19 250
pankso@19 251 ## Groff
pankso@19 252 # include "/usr/share/nano/groff.nanorc"
pankso@19 253
pankso@19 254 ## Perl
pankso@19 255 # include "/usr/share/nano/perl.nanorc"
pankso@19 256
pankso@19 257 ## Python
pankso@19 258 # include "/usr/share/nano/python.nanorc"
pankso@19 259
pankso@19 260 ## Ruby
pankso@19 261 # include "/usr/share/nano/ruby.nanorc"
pankso@19 262
pankso@19 263 ## Java
pankso@19 264 # include "/usr/share/nano/java.nanorc"
pankso@19 265
pankso@19 266 ## Assembler
pankso@19 267 # include "/usr/share/nano/asm.nanorc"
pankso@19 268
pankso@19 269 ## Bourne shell scripts
pankso@19 270 include "/usr/share/nano/sh.nanorc"
pankso@19 271
pankso@19 272 ## POV-Ray
pankso@19 273 # include "/usr/share/nano/pov.nanorc"