-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.nanorc
More file actions
42 lines (37 loc) · 2.08 KB
/
.nanorc
File metadata and controls
42 lines (37 loc) · 2.08 KB
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
# ~/.nanorc
# https://www.nano-editor.org/dist/latest/nanorc.5.html
# Author: Aamnah
# Lastmod: 2026-04-14
# If you get 'Unknown flag' errors then you're probably on macOS which uses an older version of nano (2.0.6)
# You can install the latest version with Homebrew: brew install nano
set linenumbers
set tabsize 4
set tabstospaces
set autoindent # new lines will keep previous line's indent
set mouse # click to move cursor, select with drag
set constantshow # always show cursor position in status bar
set historylog # remember search/replace history
set positionlog # reopen files at last cursor position
set smarthome # Home jumps to first non-whitespace, then col 0
set softwrap # wrap long lines visually without inserting breaks
set indicator # scrollbar-like indicator on the right
include "/usr/share/nano/*.nanorc" # syntax highlighting
# COLORS
# Valid names for the foreground and background colors are:
# Legacy palette: normal, white, black, blue, green, red, cyan, yellow, magenta
# Extended palette (since 6.0+): normal, pink, purple, mauve, lagoon, mint, lime, peach orange, latte, rosy, beet, plum, sea, sky, slate, teal, sage, brown, ocher, sand, tawny, brick, crimson, grey/gray
# where normal means the default foreground or background color.
# The name of the foreground color may be prefixed with bright. And either "fgcolor" or ",bgcolor" may be left out.
# Interface elements — format: set <element> <fg>,<bg>
# set titlecolor fgcolor,bgcolor
set titlecolor white,black
set statuscolor black,lightyellow
set errorcolor white,red
set selectedcolor black,grey
set stripecolor normal,slate # column guide (if set)
set numbercolor gray,normal # line numbers — dim grey
set keycolor cyan,normal # shortcut key combos in the two help lines at the bottom
set functioncolor green,normal # function descriptions in the two help lines at the bottom of the screen
set promptcolor white,black
set scrollercolor slate,normal
set minicolor white,black