nano: Nanorc Files

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

Menu