# SPDX-FileCopyrightText: 2023 Daniel Kalak # SPDX-License-Identifier: CC0-1.0 # Save this as ~/.nanorc # Viewing set linenumbers # -l set guidestripe 80 # -J80 (highlight the 80th column) set indicator # -q # Editing set autoindent # -i # Soft wrapping set softwrap # -S set atblanks # -a # Hard wrapping set fill 72 # -r72 (at most 72 columns before the newline) set trimblanks # -M # Syntax highlighting # Commented out because some of them look bad on light background # include "/usr/share/nano/*.nanorc" # include "/usr/share/nano-syntax-highlighting/*.nanorc" # What I do now instead syntax default comment "#" color gray "^#.*" # spaces followed by tabs: color ,yellow " + +" # U+00A0 NO-BREAK SPACE: v color ,yellow "[[:space:] ]+$" # U+00A0 again v color ,yellow " "