wok-next diff nano/stuff/nanorc @ rev 11531
up:ario (1.5.1)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 25 02:49:44 2011 +0100 (2011-12-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nano/stuff/nanorc Sun Dec 25 02:49:44 2011 +0100 1.3 @@ -0,0 +1,273 @@ 1.4 +## /etc/nanorc: system-wide initialization file for GNU nano 1.5 +## Well know text editor on SliTaz GNU/linux. ~/.nanorc for 1.6 +## personal config file. 1.7 +## 1.8 +## To make sure a value is not enabled, use "unset <option>" 1.9 +## 1.10 +## For the options that take parameters, the default value is given. 1.11 +## Other options are unset by default. 1.12 +## 1.13 +## Quotes inside string parameters don't have to be escaped with 1.14 +## backslashes. The last double quote in the string will be treated as 1.15 +## its end. For example, for the "brackets" option, ""')>]}" will match 1.16 +## ", ', ), >, ], and }. 1.17 + 1.18 +## Use auto-indentation. 1.19 +# set autoindent 1.20 + 1.21 +## Backup files to filename~. 1.22 +# set backup 1.23 + 1.24 +## The directory to put unique backup files in. 1.25 +# set backupdir "" 1.26 + 1.27 +## Do backwards searches by default. 1.28 +# set backwards 1.29 + 1.30 +## Use bold text instead of reverse video text. 1.31 +# set boldtext 1.32 + 1.33 +## The characters treated as closing brackets when justifying 1.34 +## paragraphs. They cannot contain blank characters. Only closing 1.35 +## punctuation, optionally followed by closing brackets, can end 1.36 +## sentences. 1.37 +## 1.38 +# set brackets ""')>]}" 1.39 + 1.40 +## Do case sensitive searches by default. 1.41 +# set casesensitive 1.42 + 1.43 +## Constantly display the cursor position in the statusbar. Note that 1.44 +## this overrides "quickblank". 1.45 +# set const 1.46 + 1.47 +## Use cut to end of line by default. 1.48 +# set cut 1.49 + 1.50 +## Set the line length for wrapping text and justifying paragraphs. 1.51 +## If fill is 0 or less, the line length will be the screen width less 1.52 +## this number. 1.53 +## 1.54 +# set fill -8 1.55 + 1.56 +## Enable ~/.nano_history for saving and reading search/replace strings. 1.57 +set historylog 1.58 + 1.59 +## The opening and closing brackets that can be found by bracket 1.60 +## searches. They cannot contain blank characters. The former set must 1.61 +## come before the latter set, and both must be in the same order. 1.62 +## 1.63 +# set matchbrackets "(<[{)>]}" 1.64 + 1.65 +## Use the blank line below the titlebar as extra editing space. 1.66 +# set morespace 1.67 + 1.68 +## Enable mouse support, if available for your system. When enabled, 1.69 +## mouse clicks can be used to place the cursor, set the mark (with a 1.70 +## double click), and execute shortcuts. The mouse will work in the X 1.71 +## Window System, and on the console when gpm is running. 1.72 +## 1.73 +set mouse 1.74 + 1.75 +## Allow multiple file buffers (inserting a file will put it into a 1.76 +## separate buffer). You must have configured with --enable-multibuffer 1.77 +## for this to work. 1.78 +## 1.79 +# set multibuffer 1.80 + 1.81 +## Don't convert files from DOS/Mac format. 1.82 +# set noconvert 1.83 + 1.84 +## Don't follow symlinks when writing files. 1.85 +# set nofollow 1.86 + 1.87 +## Don't display the helpful shortcut lists at the bottom of the screen. 1.88 +# set nohelp 1.89 + 1.90 +## Don't add newlines to the ends of files. 1.91 +# set nonewlines 1.92 + 1.93 +## Don't wrap text at all. 1.94 +# set nowrap 1.95 + 1.96 +## Set operating directory. nano will not read or write files outside 1.97 +## this directory and its subdirectories. Also, the current directory 1.98 +## is changed to here, so any files are inserted from this dir. A blank 1.99 +## string means the operating directory feature is turned off. 1.100 +## 1.101 +# set operatingdir "" 1.102 + 1.103 +## Preserve the XON and XOFF keys (^Q and ^S). 1.104 +# set preserve 1.105 + 1.106 +## The characters treated as closing punctuation when justifying 1.107 +## paragraphs. They cannot contain blank characters. Only closing 1.108 +## punctuation, optionally followed by closing brackets, can end 1.109 +## sentences. 1.110 +## 1.111 +# set punct "!.?" 1.112 + 1.113 +## Do quick statusbar blanking. Statusbar messages will disappear after 1.114 +## 1 keystroke instead of 26. Note that "const" overrides this. 1.115 +## 1.116 +# set quickblank 1.117 + 1.118 +## The email-quote string, used to justify email-quoted paragraphs. 1.119 +## This is an extended regular expression if your system supports them, 1.120 +## otherwise a literal string. Default: 1.121 +# set quotestr "^([ ]*[#:>\|}])+" 1.122 +## if you have extended regular expression support, otherwise: 1.123 +# set quotestr "> " 1.124 + 1.125 +## Fix Backspace/Delete confusion problem. 1.126 +# set rebinddelete 1.127 + 1.128 +## Fix numeric keypad key confusion problem. 1.129 +# set rebindkeypad 1.130 + 1.131 +## Do extended regular expression searches by default. 1.132 +# set regexp 1.133 + 1.134 +## Make the Home key smarter. When Home is pressed anywhere but at the 1.135 +## very beginning of non-whitespace characters on a line, the cursor 1.136 +## will jump to that beginning (either forwards or backwards). If the 1.137 +## cursor is already at that position, it will jump to the true 1.138 +## beginning of the line. 1.139 +# set smarthome 1.140 + 1.141 +## Use smooth scrolling as the default. 1.142 +# set smooth 1.143 + 1.144 +## Use this spelling checker instead of the internal one. This option 1.145 +## does not properly have a default value. 1.146 +## 1.147 +# set speller "aspell -x -c" 1.148 + 1.149 +## Allow nano to be suspended. 1.150 +# set suspend 1.151 + 1.152 +## Use this tab size instead of the default; it must be greater than 0. 1.153 +# set tabsize 8 1.154 + 1.155 +## Convert typed tabs to spaces. 1.156 +# set tabstospaces 1.157 + 1.158 +## Save automatically on exit, don't prompt. 1.159 +# set tempfile 1.160 + 1.161 +## Disallow file modification. Why would you want this in an rcfile? ;) 1.162 +# set view 1.163 + 1.164 +## The two single-column characters used to display the first characters 1.165 +## of tabs and spaces. 187 in ISO 8859-1 (0000BB in Unicode) and 183 in 1.166 +## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these. 1.167 +# set whitespace " " 1.168 + 1.169 +## Detect word boundaries more accurately by treating punctuation 1.170 +## characters as parts of words. 1.171 +# set wordbounds 1.172 + 1.173 + 1.174 +## Color setup 1.175 +## 1.176 +## Format: 1.177 +## 1.178 +## syntax "short description" ["filename regex" ...] 1.179 +## 1.180 +## The "none" syntax is reserved; specifying it on the command line is 1.181 +## the same as not having a syntax at all. The "default" syntax is 1.182 +## special: it takes no filename regexes, and applies to files that 1.183 +## don't match any other syntax's filename regexes. 1.184 +## 1.185 +## color foreground,background "regex" ["regex"...] 1.186 +## or 1.187 +## icolor foreground,background "regex" ["regex"...] 1.188 +## 1.189 +## "color" will do case sensitive matches, while "icolor" will do case 1.190 +## insensitive matches. 1.191 +## 1.192 +## Valid colors: white, black, red, blue, green, yellow, magenta, cyan. 1.193 +## For foreground colors, you may use the prefix "bright" to get a 1.194 +## stronger highlight. 1.195 +## 1.196 +## To use multi-line regexes, use the start="regex" end="regex" 1.197 +## [start="regex" end="regex"...] format. 1.198 +## 1.199 +## If your system supports transparency, not specifying a background 1.200 +## color will use a transparent color. If you don't want this, be sure 1.201 +## to set the background color to black or white. 1.202 +## 1.203 +## If you wish, you may put your syntaxes in separate files. You can 1.204 +## make use of such files (which can only include "syntax", "color", and 1.205 +## "icolor" commands) as follows: 1.206 +## 1.207 +## include "/path/to/syntax_file.nanorc" 1.208 +## 1.209 +## Unless otherwise noted, the name of the syntax file (without the 1.210 +## ".nanorc" extension) should be the same as the "short description" 1.211 +## name inside that file. These names are kept fairly short to make 1.212 +## them easier to remember and faster to type using nano's -Y option. 1.213 +## 1.214 +## All regexes should be extended regular expressions. 1.215 + 1.216 + 1.217 +## Nanorc files 1.218 +include "/usr/share/nano/nanorc.nanorc" 1.219 + 1.220 +## C/C++ 1.221 +include "/usr/share/nano/c.nanorc" 1.222 + 1.223 +## Config file - By SliTaz 1.224 +syntax "conf" "\.?conf$" 1.225 +## Keywords 1.226 +icolor brightgreen "=" 1.227 +## Comments 1.228 +icolor cyan "^[[:space:]]*#.*$" 1.229 + 1.230 +## HTML - With modification for SliTaz. 1.231 +#include "/usr/share/nano/html.nanorc" 1.232 +syntax "HTML" "\.html$" 1.233 +color brightblue start="<" end=">" 1.234 +color red "&[^; ]*;" 1.235 +color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->" 1.236 +color brightcyan start="<meta" end=">" start="<link" end=">" 1.237 +color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>" 1.238 +color yellow "<ul>|</ul>|<hr>|<hr />" 1.239 +color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style" 1.240 +color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>" 1.241 + 1.242 +## TeX 1.243 +include "/usr/share/nano/tex.nanorc" 1.244 + 1.245 +## Quoted emails (under e.g. mutt) 1.246 +include "/usr/share/nano/mutt.nanorc" 1.247 + 1.248 +## Patch files 1.249 +include "/usr/share/nano/patch.nanorc" 1.250 + 1.251 +## Manpages 1.252 +# include "/usr/share/nano/man.nanorc" 1.253 + 1.254 +## Groff 1.255 +# include "/usr/share/nano/groff.nanorc" 1.256 + 1.257 +## Perl 1.258 +# include "/usr/share/nano/perl.nanorc" 1.259 + 1.260 +## Python 1.261 +# include "/usr/share/nano/python.nanorc" 1.262 + 1.263 +## Ruby 1.264 +# include "/usr/share/nano/ruby.nanorc" 1.265 + 1.266 +## Java 1.267 +# include "/usr/share/nano/java.nanorc" 1.268 + 1.269 +## Assembler 1.270 +# include "/usr/share/nano/asm.nanorc" 1.271 + 1.272 +## Bourne shell scripts 1.273 +include "/usr/share/nano/sh.nanorc" 1.274 + 1.275 +## POV-Ray 1.276 +# include "/usr/share/nano/pov.nanorc"