rev |
line source |
al@17862
|
1 --- ./etc/nanorc
|
al@17862
|
2 +++ ./etc/nanorc
|
al@17862
|
3 @@ -1,10 +1,6 @@
|
al@17862
|
4 -## Sample initialization file for GNU nano.
|
al@17862
|
5 +## /etc/nanorc: system-wide initialization file for GNU nano
|
al@17862
|
6 +## ~/.nanorc for personal config file.
|
al@17862
|
7 ##
|
al@17862
|
8 -## Please note that you must have configured nano with --enable-nanorc
|
al@17862
|
9 -## for this file to be read! Also note that this file should not be in
|
al@17862
|
10 -## DOS or Mac format, and that characters specially interpreted by the
|
al@17862
|
11 -## shell should not be escaped here.
|
al@17862
|
12 -##
|
al@17862
|
13 ## To make sure an option is disabled, use "unset <option>".
|
al@17862
|
14 ##
|
al@17862
|
15 ## For the options that take parameters, the default value is given.
|
al@17862
|
16 @@ -57,7 +53,7 @@
|
al@17862
|
17 # set fill -8
|
al@17862
|
18
|
al@17862
|
19 ## Enable ~/.nano_history for saving and reading search/replace strings.
|
al@17862
|
20 -# set historylog
|
al@17862
|
21 +set historylog
|
al@17862
|
22
|
al@17862
|
23 ## Enable vim-style lock-files. This is just to let a vim user know you
|
al@17862
|
24 ## are editing a file [s]he is trying to edit and vice versa. There are
|
al@17862
|
25 @@ -76,7 +72,7 @@
|
al@17862
|
26 ## mouse clicks can be used to place the cursor, set the mark (with a
|
al@17862
|
27 ## double click), and execute shortcuts. The mouse will work in the X
|
al@17862
|
28 ## Window System, and on the console when gpm is running.
|
al@17862
|
29 -# set mouse
|
al@17862
|
30 +set mouse
|
al@17862
|
31
|
al@17862
|
32 ## Switch on multiple file buffers (inserting a file will put it into
|
al@17862
|
33 ## a separate buffer).
|
al@17862
|
34 @@ -157,7 +153,7 @@
|
al@17862
|
35 # set suspend
|
al@17862
|
36
|
al@17862
|
37 ## Use this tab size instead of the default; it must be greater than 0.
|
al@17862
|
38 -# set tabsize 8
|
al@17862
|
39 +set tabsize 4
|
al@17862
|
40
|
al@17862
|
41 ## Convert typed tabs to spaces.
|
al@17862
|
42 # set tabstospaces
|
al@17862
|
43 @@ -245,3 +241,136 @@
|
al@17862
|
44
|
al@17862
|
45 ## Set this if your backspace key sends Del most of the time.
|
al@17862
|
46 # bind Del backspace all
|
al@17862
|
47 +
|
al@17862
|
48 +
|
al@17862
|
49 +
|
al@17862
|
50 +## Assembler
|
al@17862
|
51 +# include "/usr/share/nano/asm.nanorc"
|
al@17862
|
52 +
|
al@17862
|
53 +## AWK
|
al@17862
|
54 +# include "/usr/share/nano/awk.nanorc"
|
al@17862
|
55 +
|
al@17862
|
56 +## C/C++
|
al@17862
|
57 +include "/usr/share/nano/c.nanorc"
|
al@17862
|
58 +
|
al@17862
|
59 +## Changelogs
|
al@17862
|
60 +# include "/usr/share/nano/changelog.nanorc"
|
al@17862
|
61 +
|
al@17862
|
62 +## CMake
|
al@17862
|
63 +# include "/usr/share/nano/cmake.nanorc"
|
al@17862
|
64 +
|
al@17862
|
65 +## CSS
|
al@17862
|
66 +include "/usr/share/nano/css.nanorc"
|
al@17862
|
67 +
|
al@17862
|
68 +## Apt's sources.list
|
al@17862
|
69 +# include "/usr/share/nano/debian.nanorc"
|
al@17862
|
70 +
|
al@17862
|
71 +## Default
|
al@17862
|
72 +include "/usr/share/nano/default.nanorc"
|
al@17862
|
73 +
|
al@17862
|
74 +## Fortran 90/95
|
al@17862
|
75 +# include "/usr/share/nano/fortran.nanorc"
|
al@17862
|
76 +
|
al@17862
|
77 +## Gentoo ebuilds/eclasses
|
al@17862
|
78 +# include "/usr/share/nano/gentoo.nanorc"
|
al@17862
|
79 +
|
al@17862
|
80 +## Go
|
al@17862
|
81 +# include "/usr/share/nano/go.nanorc"
|
al@17862
|
82 +
|
al@17862
|
83 +## Groff
|
al@17862
|
84 +# include "/usr/share/nano/groff.nanorc"
|
al@17862
|
85 +
|
al@17862
|
86 +## HTML
|
al@17862
|
87 +# include "/usr/share/nano/html.nanorc"
|
al@17862
|
88 +
|
al@17862
|
89 +## Java
|
al@17862
|
90 +# include "/usr/share/nano/java.nanorc"
|
al@17862
|
91 +
|
al@17862
|
92 +## Javascript
|
al@17862
|
93 +include "/usr/share/nano/javascript.nanorc"
|
al@17862
|
94 +
|
al@17862
|
95 +## JSON
|
al@17862
|
96 +# include "/usr/share/nano/json.nanorc"
|
al@17862
|
97 +
|
al@17862
|
98 +## Lua
|
al@17862
|
99 +# include "/usr/share/nano/lua.nanorc"
|
al@17862
|
100 +
|
al@17862
|
101 +## Makefiles
|
al@17862
|
102 +include "/usr/share/nano/makefile.nanorc"
|
al@17862
|
103 +
|
al@17862
|
104 +## Manpages
|
al@17862
|
105 +# include "/usr/share/nano/man.nanorc"
|
al@17862
|
106 +
|
al@17862
|
107 +## Magicpoint presentations
|
al@17862
|
108 +# include "/usr/share/nano/mgp.nanorc"
|
al@17862
|
109 +
|
al@17862
|
110 +## Quoted emails (under e.g. mutt)
|
al@17862
|
111 +include "/usr/share/nano/mutt.nanorc"
|
al@17862
|
112 +
|
al@17862
|
113 +## Nanorc files
|
al@17862
|
114 +include "/usr/share/nano/nanorc.nanorc"
|
al@17862
|
115 +
|
al@17862
|
116 +## C/C++/Obj-C
|
al@17862
|
117 +# include "/usr/share/nano/objc.nanorc"
|
al@17862
|
118 +
|
al@17862
|
119 +## OCaml
|
al@17862
|
120 +# include "/usr/share/nano/ocaml.nanorc"
|
al@17862
|
121 +
|
al@17862
|
122 +## Patch files
|
al@17862
|
123 +include "/usr/share/nano/patch.nanorc"
|
al@17862
|
124 +
|
al@17862
|
125 +## Perl
|
al@17862
|
126 +# include "/usr/share/nano/perl.nanorc"
|
al@17862
|
127 +
|
al@17862
|
128 +## PHP
|
al@17862
|
129 +include "/usr/share/nano/php.nanorc"
|
al@17862
|
130 +
|
al@17862
|
131 +## PO files
|
al@17862
|
132 +include "/usr/share/nano/po.nanorc"
|
al@17862
|
133 +
|
al@17862
|
134 +## POV-Ray
|
al@17862
|
135 +# include "/usr/share/nano/pov.nanorc"
|
al@17862
|
136 +
|
al@17862
|
137 +## Python
|
al@17862
|
138 +include "/usr/share/nano/python.nanorc"
|
al@17862
|
139 +
|
al@17862
|
140 +## Ruby
|
al@17862
|
141 +# include "/usr/share/nano/ruby.nanorc"
|
al@17862
|
142 +
|
al@17862
|
143 +## Bourne shell scripts
|
al@17862
|
144 +include "/usr/share/nano/sh.nanorc"
|
al@17862
|
145 +
|
al@17862
|
146 +## RPM spec files
|
al@17862
|
147 +# include "/usr/share/nano/spec.nanorc"
|
al@17862
|
148 +
|
al@17862
|
149 +## Tcl files
|
al@17862
|
150 +# include "/usr/share/nano/tcl.nanorc"
|
al@17862
|
151 +
|
al@17862
|
152 +## TeX files
|
al@17862
|
153 +# include "/usr/share/nano/tex.nanorc"
|
al@17862
|
154 +
|
al@17862
|
155 +## Texinfo files
|
al@17862
|
156 +# include "/usr/share/nano/texinfo.nanorc"
|
al@17862
|
157 +
|
al@17862
|
158 +## XML files
|
al@17862
|
159 +include "/usr/share/nano/xml.nanorc"
|
al@17862
|
160 +
|
al@17862
|
161 +
|
al@17862
|
162 +## Config file - By SliTaz
|
al@17862
|
163 +syntax "conf" "\.?conf$"
|
al@17862
|
164 +## Keywords
|
al@17862
|
165 +icolor brightgreen "="
|
al@17862
|
166 +## Comments
|
al@17862
|
167 +icolor cyan "^[[:space:]]*#.*$"
|
al@17862
|
168 +
|
al@17862
|
169 +## HTML - With modification for SliTaz.
|
al@17862
|
170 +syntax "HTML" "\.html$"
|
al@17862
|
171 +color brightblue start="<" end=">"
|
al@17862
|
172 +color red "&[^; ]*;"
|
al@17862
|
173 +color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->"
|
al@17862
|
174 +color brightcyan start="<meta" end=">" start="<link" end=">"
|
al@17862
|
175 +color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>"
|
al@17862
|
176 +color yellow "<ul>|</ul>|<hr>|<hr />"
|
al@17862
|
177 +color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style"
|
al@17862
|
178 +color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>"
|
al@17862
|
179 +
|
al@17862
|
180
|
al@17862
|
181 --- ./usr/share/nano/sh.nanorc
|
al@17862
|
182 +++ ./usr/share/nano/sh.nanorc
|
al@17862
|
183 @@ -1,6 +1,6 @@
|
al@17862
|
184 ## Here is an example for Bourne shell scripts.
|
al@17862
|
185
|
al@17862
|
186 -syntax "sh" "\.sh$"
|
al@17862
|
187 +syntax "sh" "\.sh$" "receipt"
|
al@17862
|
188 header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
|
al@17862
|
189 magic "(POSIX|Bourne.*) shell script text"
|
al@17862
|
190
|