-
Notifications
You must be signed in to change notification settings - Fork 3
/
.nanorc
441 lines (320 loc) · 8.75 KB
/
.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
#-------- General Options ----------
# (c) Lilian Besson 2015
# http://perso.crans.org/besson
# the reference web page for this is
# http://www.nano-editor.org/dist/v2.0/nano.html#Nanorc-Files
#
# MIT License on https://github.com/Naereen/nanorc
#
unset autoindent
#set nowrap
set matchbrackets "(<[{)>]}"
## set brackets "\"')]}"
## unset mouse
set tabsize 8
set softwrap
set suspendable
set const
#set smooth
set rebindkeypad
set boldtext
set multibuffer
set preserve
set backup
set historylog
set quickblank
set wordbounds
## set undo # (still experimental/buggy on nano 2.2.x)
set nonewlines
#| File : ~/.nanorc
#| Last modified : 2012-02-28
#| Project page : https://github.com/fabi1cazenave/gnupad
#| Author : Fabien Cazenave
#| Licence : WTFPL
#|
#| This configuration file should bring a Notepad-like behavior to Nano.
#|
#| Not implemented yet:
#| * Ctrlt+arrows caret movements
#| * Shift+arrows selection mode
#| (=> use the Emacs-like Ctrl+Space marker instead)
#| * Shift+[F3] (= previous search occurrences)
#|
#| References:
#| * man nanorc
#| * /usr/share/doc/nano/examples/nanorc.sample.gz (or equivalent)
#|
## cut/copy/paste
# bind ^X cut main
# bind ^C copytext main
# bind ^V uncut main
## undo/redo (still experimental/buggy on nano 2.2.x)
# set undo
# bind ^Z undo all
# bind ^Y redo all
## find/replace (shift+F3 still missing)
# bind ^F whereis main
# bind ^H replace main
# bind ^G searchagain main
# bind F3 searchagain main
## save/quit/help (requires to ignore XON/XOFF keys)
# unset preserve
# bind ^S writeout all
# bind ^Q exit all
bind F1 help all
#------- New Syntax Highlight ------------
## Nanorc
include "~/.nano/nanorc.nanorc"
## C/C++
include "~/.nano/c.nanorc"
## CUDA
include "~/.nano/cu.nanorc"
## OCaml & Caml Light
include "~/.nano/caml.nanorc"
## Fortran
include "~/.nano/fortran.nanorc"
## HTML
include "~/.nano/html.nanorc"
## JS
include "~/.nano/js.nanorc"
## Patch files
include "~/.nano/patch.nanorc"
## Manpages
include "~/.nano/man.nanorc"
## Perl
include "~/.nano/perl.nanorc"
## Python
include "~/.nano/python.nanorc"
## reST
include "~/.nano/reST.nanorc"
## Ruby
include "~/.nano/ruby.nanorc"
## Bourne shell scripts
include "~/.nano/sh.nanorc"
## makefile .am
include "~/.nano/gentoo.nanorc"
## TeX
include "~/.nano/tex.nanorc"
## CSS
include "~/.nano/css.nanorc"
## php
include "~/.nano/php.nanorc"
## XML
include "~/.nano/xml.nanorc"
## Lua
include "~/.nano/lua.nanorc"
## Conkyrc
include "~/.nano/conky.nanorc"
## STRIPS
include "~/.nano/strips.nanorc"
## Mutt mails
include "~/.nano/mutt.nanorc"
## Coloration for apache2
include "~/.nano/apache2.nanorc"
## Coloration for apacheconf
include "~/.nano/apacheconf.nanorc"
## Coloration for asm
include "~/.nano/asm.nanorc"
## Coloration for awk
include "~/.nano/awk.nanorc"
## Coloration for caml
include "~/.nano/caml.nanorc"
## Coloration for c-file
include "~/.nano/c-file.nanorc"
## Coloration for changelog
##include "~/.nano/changelog.nanorc"
## Coloration for changelogs
include "~/.nano/changelogs.nanorc"
## Coloration for clike
include "~/.nano/clike.nanorc"
## Coloration for cmake
include "~/.nano/cmake.nanorc"
## Coloration for c
include "~/.nano/c.nanorc"
## Coloration for config2
##include "~/.nano/config2.nanorc"
## Coloration for config3
##include "~/.nano/config3.nanorc"
## Coloration for configfiles
include "~/.nano/configfiles.nanorc"
## Coloration for config
##include "~/.nano/config.nanorc"
## Coloration for conf
include "~/.nano/conf.nanorc"
## Coloration for conky
include "~/.nano/conky.nanorc"
## Coloration for css
include "~/.nano/css.nanorc"
## Coloration for cu
include "~/.nano/cu.nanorc"
## Coloration for cython
include "~/.nano/cython.nanorc"
## Coloration for debian
include "~/.nano/debian.nanorc"
## Coloration for default
include "~/.nano/default.nanorc"
## Coloration for delphi
include "~/.nano/delphi.nanorc"
## Coloration for desc
include "~/.nano/desc.nanorc"
## Coloration for dotemacs
include "~/.nano/dotemacs.nanorc"
## Coloration for dummy
include "~/.nano/dummy.nanorc"
## Coloration for ekghistory
include "~/.nano/ekghistory.nanorc"
## Coloration for etc-stuff
include "~/.nano/etc-stuff.nanorc"
## Coloration for etcxml
include "~/.nano/etcxml.nanorc"
## Coloration for fortran
include "~/.nano/fortran.nanorc"
## Coloration for gentoo
include "~/.nano/gentoo.nanorc"
## Coloration for groff
include "~/.nano/groff.nanorc"
## Coloration for haml
include "~/.nano/haml.nanorc"
## Coloration for havp
include "~/.nano/havp.nanorc"
## Coloration for histoire
include "~/.nano/histoire.nanorc"
## Coloration for html
include "~/.nano/html.nanorc"
## Coloration for info
include "~/.nano/info.nanorc"
## Coloration for initng
include "~/.nano/initng.nanorc"
## Coloration for initscript
include "~/.nano/initscript.nanorc"
## Coloration for java
include "~/.nano/java.nanorc"
## Coloration for js
include "~/.nano/js.nanorc"
## Coloration for log-stuff
include "~/.nano/log-stuff.nanorc"
## Coloration for lua
include "~/.nano/lua.nanorc"
## Coloration for maincf
include "~/.nano/maincf.nanorc"
## Coloration for makefile
include "~/.nano/makefile.nanorc"
## Coloration for man
include "~/.nano/man.nanorc"
## Coloration for markdown
include "~/.nano/markdown.nanorc"
## Coloration for mgp
include "~/.nano/mgp.nanorc"
## Coloration for mimetype
include "~/.nano/mimetype.nanorc"
## Coloration for mutt
include "~/.nano/mutt.nanorc"
## Coloration for named
include "~/.nano/named.nanorc"
## Coloration for nanorc
include "~/.nano/nanorc.nanorc"
## Coloration for nscd
include "~/.nano/nscd.nanorc"
## Coloration for objc
include "~/.nano/objc.nanorc"
## Coloration for ocaml
## include "~/.nano/ocaml.nanorc"
## Coloration for others
include "~/.nano/others.nanorc"
## Coloration for paludis
include "~/.nano/paludis.nanorc"
## Coloration for passwd
include "~/.nano/passwd.nanorc"
## Coloration for patch
include "~/.nano/patch.nanorc"
## Coloration for perl
include "~/.nano/perl.nanorc"
## Coloration for php2
include "~/.nano/php2.nanorc"
## Coloration for php
##include "~/.nano/php.nanorc"
## Coloration for pkgbuild
include "~/.nano/pkgbuild.nanorc"
## Coloration for po
include "~/.nano/po.nanorc"
## Coloration for postgresql
include "~/.nano/postgresql.nanorc"
## Coloration for pov
include "~/.nano/pov.nanorc"
## Coloration for privoxy
include "~/.nano/privoxy.nanorc"
## Coloration for profile
include "~/.nano/profile.nanorc"
## Coloration for python
include "~/.nano/python.nanorc"
## Coloration for rcfiles
##include "~/.nano/rcfiles.nanorc"
## Coloration for rcfiles-new
include "~/.nano/rcfiles-new.nanorc"
## Coloration for reST
include "~/.nano/reST.nanorc"
## Coloration for rsync
include "~/.nano/rsync.nanorc"
## Coloration for ruby
include "~/.nano/ruby.nanorc"
## Coloration for shlike
include "~/.nano/shlike.nanorc"
## Coloration for sh
include "~/.nano/sh.nanorc"
## Coloration for softcam
include "~/.nano/softcam.nanorc"
## Coloration for sources_list
## include "~/.nano/sources_list.nanorc"
## Coloration for strips
include "~/.nano/strips.nanorc"
## Coloration for tab
include "~/.nano/tab.nanorc"
## Coloration for tcl
include "~/.nano/tcl.nanorc"
## Coloration for tex
include "~/.nano/tex.nanorc"
## Coloration for urls
include "~/.nano/urls.nanorc"
## Coloration for vhost
include "~/.nano/vhost.nanorc"
## Coloration for xdefaults
include "~/.nano/xdefaults.nanorc"
## Coloration for xml
include "~/.nano/xml.nanorc"
## Coloration for xorg
include "~/.nano/xorg.nanorc"
## Coloration for zshrc
include "~/.nano/zshrc.nanorc"
## Coloration for nanorc
include "~/.nano/nanorc.nanorc"
## Coloration for Julia
include "~/.nano/julia.nanorc"
## Bonus: syntax highlighting
include "/usr/share/nano/asm.nanorc"
include "/usr/share/nano/awk.nanorc"
include "/usr/share/nano/cmake.nanorc"
include "/usr/share/nano/c.nanorc"
include "/usr/share/nano/css.nanorc"
include "/usr/share/nano/debian.nanorc"
include "/usr/share/nano/fortran.nanorc"
include "/usr/share/nano/gentoo.nanorc"
include "/usr/share/nano/groff.nanorc"
include "/usr/share/nano/html.nanorc"
include "/usr/share/nano/java.nanorc"
include "/usr/share/nano/makefile.nanorc"
include "/usr/share/nano/man.nanorc"
include "/usr/share/nano/mgp.nanorc"
include "/usr/share/nano/mutt.nanorc"
include "/usr/share/nano/nanorc.nanorc"
include "/usr/share/nano/objc.nanorc"
include "/usr/share/nano/ocaml.nanorc"
include "/usr/share/nano/patch.nanorc"
include "/usr/share/nano/perl.nanorc"
include "/usr/share/nano/php.nanorc"
include "/usr/share/nano/pov.nanorc"
include "/usr/share/nano/python.nanorc"
include "/usr/share/nano/ruby.nanorc"
include "/usr/share/nano/sh.nanorc"
include "/usr/share/nano/tcl.nanorc"
include "/usr/share/nano/tex.nanorc"
include "/usr/share/nano/xml.nanorc"