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