nano: Nanorc Files

1 
1 7 Nanorc Files
1 **************
1 
1 The nanorc files contain the default settings for ‘nano’.  They should
1 be in Unix format, not in DOS or Mac format.  During startup, ‘nano’
1 will first read the system-wide settings, from /etc/nanorc (the exact
1 path might be different), and then the user-specific settings, either
1 from ‘~/.nanorc’ or from ‘$XDG_CONFIG_HOME/nano/nanorc’ or from
1 ‘.config/nano/nanorc’, whichever exists first.
1 
1    A nanorc file accepts a series of "set" and "unset" commands, which
1 can be used to configure ‘nano’ on startup without using command-line
1 options.  Additionally, there are some commands to define syntax
DONTPRINTYET 1 highlighting and to rebind keys — ⇒Syntax Highlighting and *note1DONTPRINTYET 1 highlighting and to rebind keys — ⇒Syntax Highlighting and ⇒
 Rebinding Keys.  ‘nano’ will read one command per line.
1 
1    Options in nanorc files take precedence over ‘nano’’s defaults, and
1 command-line options override nanorc settings.  Also, options that do
1 not take an argument are unset by default.  So using the ‘unset’ command
1 is only needed when wanting to override a setting of the system’s nanorc
1 file in your own nanorc.  Options that take an argument cannot be unset.
1 
1    Quotes inside string parameters don’t have to be escaped with
1 backslashes.  The last double quote in the string will be treated as its
1 end.  For example, for the ‘brackets’ option, ""')>]}" will match ‘"’,
1 ‘'’, ‘)’, ‘>’, ‘]’, and ‘}’.
1 

Menu