wok view nano/stuff/nano.patch @ rev 20595
xfi, xfw, cryptkeeper: dirty hack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 16 10:41:06 2018 +0100 (2018-12-16) |
parents | f9a21d0369a2 |
children |
line source
1 --- ./etc/nanorc
2 +++ ./etc/nanorc
3 @@ -1,10 +1,6 @@
4 -## Sample initialization file for nano.
5 +## /etc/nanorc: system-wide initialization file for nano.
6 +## ~/.nanorc: 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 @@ -58,7 +54,7 @@
17 # set fill -8
19 ## Remember the used search/replace strings for the next session.
20 -# set historylog
21 +set historylog
23 ## Make the justify command kill whitespace at the end of lines.
24 # set justifytrim
25 @@ -80,7 +76,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 @@ -159,7 +155,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 @@ -249,3 +245,151 @@
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 +## Autoconf
54 +# include "/usr/share/nano/autoconf.nanorc"
55 +
56 +## AWK
57 +# include "/usr/share/nano/awk.nanorc"
58 +
59 +## C/C++
60 +include "/usr/share/nano/c.nanorc"
61 +
62 +## Changelogs
63 +# include "/usr/share/nano/changelog.nanorc"
64 +
65 +## CMake
66 +# include "/usr/share/nano/cmake.nanorc"
67 +
68 +## CSS
69 +include "/usr/share/nano/css.nanorc"
70 +
71 +## Apt's sources.list
72 +# include "/usr/share/nano/debian.nanorc"
73 +
74 +## Default
75 +include "/usr/share/nano/default.nanorc"
76 +
77 +## Emacs Lisp
78 +# include "/usr/share/nano/elisp.nanorc"
79 +
80 +## Fortran 90/95
81 +# include "/usr/share/nano/fortran.nanorc"
82 +
83 +## Gentoo ebuilds/eclasses
84 +# include "/usr/share/nano/gentoo.nanorc"
85 +
86 +## Go
87 +# include "/usr/share/nano/go.nanorc"
88 +
89 +## Groff
90 +# include "/usr/share/nano/groff.nanorc"
91 +
92 +## Guile Scheme
93 +# include "/usr/share/nano/guile.nanorc"
94 +
95 +## HTML
96 +# include "/usr/share/nano/html.nanorc"
97 +
98 +## Java
99 +# include "/usr/share/nano/java.nanorc"
100 +
101 +## Javascript
102 +include "/usr/share/nano/javascript.nanorc"
103 +
104 +## JSON
105 +# include "/usr/share/nano/json.nanorc"
106 +
107 +## Lua
108 +# include "/usr/share/nano/lua.nanorc"
109 +
110 +## Makefiles
111 +include "/usr/share/nano/makefile.nanorc"
112 +
113 +## Manpages
114 +include "/usr/share/nano/man.nanorc"
115 +
116 +## Magicpoint presentations
117 +# include "/usr/share/nano/mgp.nanorc"
118 +
119 +## Quoted emails (under e.g. mutt)
120 +include "/usr/share/nano/mutt.nanorc"
121 +
122 +## Nanorc files
123 +include "/usr/share/nano/nanorc.nanorc"
124 +
125 +## nftables
126 +# include "/usr/share/nano/nftables.nanorc"
127 +
128 +## C/C++/Obj-C
129 +# include "/usr/share/nano/objc.nanorc"
130 +
131 +## OCaml
132 +# include "/usr/share/nano/ocaml.nanorc"
133 +
134 +## Patch files
135 +include "/usr/share/nano/patch.nanorc"
136 +
137 +## Perl
138 +# include "/usr/share/nano/perl.nanorc"
139 +
140 +## PHP
141 +include "/usr/share/nano/php.nanorc"
142 +
143 +## PO files
144 +include "/usr/share/nano/po.nanorc"
145 +
146 +## PostgreSQL
147 +# include "/usr/share/nano/postgresql.nanorc"
148 +
149 +## POV-Ray
150 +# include "/usr/share/nano/pov.nanorc"
151 +
152 +## Python
153 +include "/usr/share/nano/python.nanorc"
154 +
155 +## Ruby
156 +# include "/usr/share/nano/ruby.nanorc"
157 +
158 +## Bourne shell scripts
159 +include "/usr/share/nano/sh.nanorc"
160 +
161 +## RPM spec files
162 +# include "/usr/share/nano/spec.nanorc"
163 +
164 +## Tcl files
165 +# include "/usr/share/nano/tcl.nanorc"
166 +
167 +## TeX files
168 +# include "/usr/share/nano/tex.nanorc"
169 +
170 +## Texinfo files
171 +# include "/usr/share/nano/texinfo.nanorc"
172 +
173 +## XML files
174 +include "/usr/share/nano/xml.nanorc"
175 +
176 +
177 +## Config file - By SliTaz
178 +syntax "conf" "\.?conf$"
179 +## Keywords
180 +icolor brightgreen "="
181 +## Comments
182 +icolor cyan "^[[:space:]]*#.*$"
183 +
184 +## HTML - With modification for SliTaz.
185 +syntax "HTML" "\.html$"
186 +color brightblue start="<" end=">"
187 +color red "&[^; ]*;"
188 +color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->"
189 +color brightcyan start="<meta" end=">" start="<link" end=">"
190 +color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>"
191 +color yellow "<ul>|</ul>|<hr>|<hr />"
192 +color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style"
193 +color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>"
194 +
196 --- ./usr/share/nano/sh.nanorc
197 +++ ./usr/share/nano/sh.nanorc
198 @@ -1,6 +1,6 @@
199 ## Here is an example for Bourne shell scripts.
201 -syntax "sh" "\.sh$"
202 +syntax "sh" "\.sh$" "receipt"
203 header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
204 magic "(POSIX|Bourne.*) shell script text"
205 linter dash -n