From 117d7f181e48afa10c0980ed924557042c68f31a Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 30 Sep 2023 15:24:37 +0100 Subject: [PATCH] Update .nanorcs and add .nanorc-darwin. --- .nanorc-2 | 55 +++++++++++++++++++++-------------- .nanorc-6 | 2 +- .nanorc-7 | 2 +- .nanorc-darwin | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+), 24 deletions(-) create mode 100644 .nanorc-darwin diff --git a/.nanorc-2 b/.nanorc-2 index 628b0ea..d3965ea 100644 --- a/.nanorc-2 +++ b/.nanorc-2 @@ -16,7 +16,10 @@ ## ", ', ), >, ], and }. ## Use auto-indentation. -# set autoindent +set autoindent + +## When saving a file, create a backup file by adding a tilde (~). +# set backup ## Do case-sensitive searches by default. # set casesensitive @@ -27,12 +30,6 @@ set fill -2 ## Remember the used search/replace strings for the next session. set historylog -## When justifying text, trailing whitespace will automatically be removed. -set justifytrim - -## Enable vim-style lock-files. -set locking - ## Use the blank line below the titlebar as extra editing space. set morespace @@ -45,9 +42,6 @@ set nohelp ## Don't wrap text at all. set nowrap -## Save the cursor position of files between editing sessions. -# set positionlog - ## Do quick statusbar blanking. set quickblank @@ -60,9 +54,6 @@ set smarthome ## Use smooth scrolling as the default. set smooth -## Enable soft line wrapping (AKA full-line display). -# set softwrap - ## Use this spelling checker instead of the internal one. set speller "aspell -x -c" @@ -70,21 +61,41 @@ set speller "aspell -x -c" set suspend ## The two characters used to indicate the presence of tabs and spaces. -# set whitespace >. +set whitespace »· ## Detect word boundaries more accurately by treating punctuation characters as parts of words. set wordbounds -## Interface colours. -set functioncolor magenta -set keycolor brightwhite -set statuscolor magenta -set titlecolor magenta - - ## Include all existing syntax highlight definitions. -include "/usr/share/nano/*.nanorc" +include "/usr/share/nano/asm.nanorc" +include "/usr/share/nano/awk.nanorc" +include "/usr/share/nano/c.nanorc" +include "/usr/share/nano/cmake.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" ## Key bindings. diff --git a/.nanorc-6 b/.nanorc-6 index 8fefd82..52a48e0 100644 --- a/.nanorc-6 +++ b/.nanorc-6 @@ -60,7 +60,7 @@ set nohelp ## Don't add newlines to the ends of files. # set nonewlines -# Save the cursor position of files between editing sessions. +## Save the cursor position of files between editing sessions. # set positionlog ## Do quick statusbar blanking. diff --git a/.nanorc-7 b/.nanorc-7 index 8fefd82..52a48e0 100644 --- a/.nanorc-7 +++ b/.nanorc-7 @@ -60,7 +60,7 @@ set nohelp ## Don't add newlines to the ends of files. # set nonewlines -# Save the cursor position of files between editing sessions. +## Save the cursor position of files between editing sessions. # set positionlog ## Do quick statusbar blanking. diff --git a/.nanorc-darwin b/.nanorc-darwin new file mode 100644 index 0000000..ddc593f --- /dev/null +++ b/.nanorc-darwin @@ -0,0 +1,79 @@ +## Sample initialization file for GNU nano. +## +## Please note that you must have configured nano with --enable-nanorc +## for this file to be read! Also note that this file should not be in +## DOS or Mac format, and that characters specially interpreted by the +## shell should not be escaped here. +## +## To make sure an option is disabled, use "unset