-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.nanorc
199 lines (137 loc) · 3.71 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
# .nanorc
# Lloyd Dilley
# https://github.com/ldilley/dotfiles
# Auto indent
set autoindent
# Back up edited files as <file_name>~
#set backup
# Backup directory
#set backupdir ""
# Perform case-sensitive searches
set casesensitive
# Display cursor position in the status bar
# "const" has been deprecated since nano 2.9.7. Use "constantshow" in nano >=2.9.7.
#set const
set constantshow
# Display line numbers
set linenumbers
# Make use of blank line below title bar (obsoleted in >=4.0)
#set morespace
# Allow the opening of multiple files (use ctrl+r)
# This can be toggled with alt+f
# Swap buffers with alt+, (reverse) and alt+. (forward)
set multibuffer
# Omit the helpful shortcut list at the bottom of the screen for more editing space
set nohelp
# Do not wrap text
set nowrap
# Ignore XON and XOFF (^Q and ^S)
unset preserve
# Perform extended regular expression searches
set regexp
# Use smooth scrolling (single line) (obsoleted in >=4.0)
#set smooth
# Use the following spelling checker
set speller "hunspell"
# Allow nano to be suspended (ctrl+z and then "fg" from the shell to resume)
set suspend
# Tab size is equal to *this* many spaces
set tabsize 2
# Convert typed tabs to spaces
set tabstospaces
# Custom colors
set numbercolor magenta,black
set statuscolor black,yellow
set titlecolor black,cyan
# Keybinds
#bind M-W nowrap main
#bind M-A casesens search
#bind ^S research main
#bind kdel backspace all
# Additional support for various programming languages
# Change the include path to "/usr/local/share/nano" on FreeBSD.
# Nanorc files
include "/usr/share/nano/nanorc.nanorc"
# C/C++
include "/usr/share/nano/c.nanorc"
# Makefiles
include "/usr/share/nano/makefile.nanorc"
# Cascading Style Sheets
include "/usr/share/nano/css.nanorc"
# Debian files
#include "/usr/share/nano/debian.nanorc"
# Gentoo files
#include "/usr/share/nano/gentoo.nanorc"
# HTML
include "/usr/share/nano/html.nanorc"
# PHP
include "/usr/share/nano/php.nanorc"
# TCL
include "/usr/share/nano/tcl.nanorc"
# TeX
include "/usr/share/nano/tex.nanorc"
# Quoted emails (under e.g. mutt)
#include "/usr/share/nano/mutt.nanorc"
# Patch files
include "/usr/share/nano/patch.nanorc"
# Manpages
include "/usr/share/nano/man.nanorc"
# Groff
include "/usr/share/nano/groff.nanorc"
# Perl
include "/usr/share/nano/perl.nanorc"
# Python
include "/usr/share/nano/python.nanorc"
# Ruby
include "/usr/share/nano/ruby.nanorc"
# Java
include "/usr/share/nano/java.nanorc"
# Fortran
#include "/usr/share/nano/fortran.nanorc"
# Objective-C
include "/usr/share/nano/objc.nanorc"
# OCaml
include "/usr/share/nano/ocaml.nanorc"
# AWK
include "/usr/share/nano/awk.nanorc"
# Assembler
include "/usr/share/nano/asm.nanorc"
# Bourne shell scripts
include "/usr/share/nano/sh.nanorc"
# POV-Ray
#include "/usr/share/nano/pov.nanorc"
# XML-type files
include "/usr/share/nano/xml.nanorc"
# Custom languages not included by default
# These can be obtained from https://github.com/scopatz/nanorc
# The uncommented languages are now supported by default in Debian 10.
# Clojure
#include "/usr/share/nano/clojure.nanorc"
# CMake
include "/usr/share/nano/cmake.nanorc"
# CSharp
#include "/usr/share/nano/csharp.nanorc"
# Go
include "/usr/share/nano/go.nanorc"
# Haskell
#include "/usr/share/nano/haskell.nanorc"
# JavaScript
include "/usr/share/nano/javascript.nanorc"
# JSON
include "/usr/share/nano/json.nanorc"
# Lua
include "/usr/share/nano/lua.nanorc"
# Puppet
#include "/usr/share/nano/puppet.nanorc"
# Rust
include "/usr/share/nano/rust.nanorc"
# Scala
#include "/usr/share/nano/scala.nanorc"
# sed
#include "/usr/share/nano/sed.nanorc"
# SQL
#include "/usr/share/nano/sql.nanorc"
# Swift
#include "/usr/share/nano/swift.nanorc"
# YAML
#include "/usr/share/nano/yaml.nanorc"