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