Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 1 | <HTML><HEAD><TITLE>Manpage of NANORC</TITLE> |
| 2 | </HEAD><BODY> |
| 3 | <H1>NANORC</H1> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 4 | Section: File Formats (5)<BR>Updated: June 19, 2003<BR><A HREF="#index">Index</A> |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 5 | <A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR> |
| 6 | |
| 7 | |
| 8 | |
| 9 | <A NAME="lbAB"> </A> |
| 10 | <H2>NAME</H2> |
| 11 | |
| 12 | nanorc - GNU nano's rcfile |
| 13 | <A NAME="lbAC"> </A> |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 14 | <H2>DESCRIPTION</H2> |
| 15 | |
| 16 | This manual page documents GNU <B>nano</B>'s rcfile. |
| 17 | <P> |
| 18 | |
| 19 | <B>nano</B> is a small, free and friendly editor which aims to replace |
| 20 | Pico, the default editor included in the non-free Pine package. Rather |
| 21 | than just copying Pico's look and feel, <B>nano</B> also implements some |
| 22 | missing (or disabled by default) features in Pico, such as "search and |
| 23 | replace" and "go to line number". |
| 24 | <P> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 25 | |
| 26 | The <I>nanorc</I> file contains the default settings for <B>nano</B>. |
| 27 | During startup, <B>nano</B> will first read its system-wide settings from |
| 28 | <I>$SYSCONFDIR/nanorc</I>, |
| 29 | |
| 30 | and then user-specific settings from |
| 31 | <I>~/.nanorc</I>. |
| 32 | |
| 33 | <P> |
| 34 | <A NAME="lbAD"> </A> |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 35 | <H2>OPTIONS</H2> |
| 36 | |
| 37 | The configuration file accepts a series of "set" and "unset" commands, |
| 38 | which can be used to configure nano on startup without using the |
| 39 | command-line options. Additionally, the "syntax" and "color" keywords |
| 40 | are used to define syntax highlighting rules for different text patterns. |
| 41 | GNU nano will read one command per line. |
| 42 | <P> |
| 43 | Options in rcfiles take precedence over nano's defaults, and command line |
| 44 | options override rcfile settings. |
| 45 | <P> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 46 | Options are unset by default, except for options that take an argument. |
| 47 | <P> |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 48 | The supported commands and arguments are: |
| 49 | <P> |
| 50 | <DL COMPACT> |
| 51 | <DT><B>set/unset autoindent</B><DD> |
| 52 | Use auto-indentation. |
| 53 | <DT><B>set/unset backup</B><DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 54 | Create backup files in |
| 55 | <I>filename~</I>. |
| 56 | |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 57 | <DT><B>set/unset const</B><DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 58 | Constantly display the cursor position in the status bar. |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 59 | <DT><B>set/unset cut</B><DD> |
| 60 | Use cut to end of line with ^K by default. |
| 61 | <DT><B>set fill </B><I>n</I><DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 62 | Wrap lines at column number <I>n</I>. If <I>n</I> is 0 or less, the line |
| 63 | length will be the screen width less <I>n</I>. The default value is -8. |
| 64 | <DT><B>set/unset historylog</B><DD> |
| 65 | Enable |
| 66 | <I>~/.nano_history</I> |
| 67 | |
| 68 | for saving and reading search/replace strings. |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 69 | <DT><B>set/unset keypad</B><DD> |
| 70 | Use alternate keypad routines. |
| 71 | <DT><B>set/unset multibuffer</B><DD> |
| 72 | Allow inserting files into their own buffers. |
| 73 | <DT><B>set/unset noconvert</B><DD> |
| 74 | Don't convert files from DOS/Mac format. |
| 75 | <DT><B>set/unset nofollow</B><DD> |
| 76 | Don't follow symlinks when writing files. |
| 77 | <DT><B>set/unset nohelp</B><DD> |
| 78 | Don't display the help lists at the bottom of the screen. |
| 79 | <DT><B>set/unset nowrap</B><DD> |
| 80 | Don't wrap text at all. |
| 81 | <DT><B>set operatingdir "</B><I>directory</I>"<DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 82 | <B>nano</B> will only read and write files inside <I>directory</I> and its |
| 83 | subdirectories. Also, the current directory is changed to here, so files |
| 84 | are inserted from this dir. By default the operating directory feature is |
| 85 | turned off. |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 86 | <DT><B>set/unset preserve</B><DD> |
| 87 | Preserve the XON and XOFF keys (^Q and ^S). |
| 88 | <DT><B>set quotestr "</B><I>string</I>"<DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 89 | The email-quote string, used to justify email-quoted paragraphs. This is |
| 90 | an "extended regular expression" if your system supports them, otherwise a |
| 91 | literal string. The default value is |
| 92 | <P> |
| 93 | <TT> </TT>set quotestr "^([ \t]*[|>:}#])+"<BR> |
| 94 | <P> |
| 95 | if you have regexps, otherwise set quotestr "> ". Note that '\t' |
| 96 | above stands for a literal Tab character. |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 97 | <DT><B>set/unset regexp</B><DD> |
| 98 | Do regular expression searches by default. |
| 99 | <DT><B>set/unset smooth</B><DD> |
| 100 | Use smooth scrolling by default. |
| 101 | <DT><B>set speller </B><I>spellprog</I><DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 102 | Use spelling checker <I>spellprog</I> instead of the built-in one, which |
| 103 | calls <I>spell</I>. |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 104 | <DT><B>set/unset suspend</B><DD> |
| 105 | Allow nano to be suspended with ^Z. |
| 106 | <DT><B>set tabsize </B><I>n</I><DD> |
| 107 | Use a tab size of <I>n</I> instead of the default (8); must be greater |
| 108 | than 0. |
| 109 | <DT><B>set/unset tempfile</B><DD> |
| 110 | Save automatically on exit, don't prompt. |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 111 | <DT><B>set/unset view</B><DD> |
| 112 | Disallow file modification. |
| 113 | <DT><B>syntax </B><I>str</I> [<I>fileregex</I> ... ] |
| 114 | |
| 115 | <DD> |
| 116 | Defines a syntax named <I>str</I> which can be activated via the |
| 117 | <B>-Y</B> flag, or will be automatically activated if the current |
| 118 | filename matches <I>fileregex</I>. All following <B>color</B> statements |
| 119 | will apply to <I>syntax</I> until a new syntax is defined. |
| 120 | <DT><B>color </B><I>fgcolor</I>[,<I>bgcolor</I>] <I>regex</I> ... |
| 121 | |
| 122 | <DD> |
| 123 | For the currently defined syntax, display all expressions matching |
| 124 | <I>regex</I> with foreground color <I>fgcolor</I> and optional background |
| 125 | color <I>bgcolor</I>. Legal colors for foreground and background color are: |
| 126 | white, black, red, blue, green, yellow, magenta, and cyan. You may use |
| 127 | the prefix "bright" to force a stronger color highlight. If your |
| 128 | terminal supports transparency, not specifying a <I>bgcolor</I> tells |
| 129 | <B>nano</B> to attempt to use a transparent background. |
| 130 | <DT><B>color </B><I>fgcolor</I>[,<I>bgcolor</I>] start=<I>sr</I> end=<I>er</I> |
| 131 | |
| 132 | <DD> |
| 133 | Display expressions which start with <I>sr</I> and end with <I>er</I> |
| 134 | with foreground color <I>fgcolor</I> and optional |
| 135 | background color <I>bgcolor</I>. This allows syntax highlighting to span |
| 136 | multiple lines. Note that all subsequent instances of <I>sr</I> after |
| 137 | an initial <I>sr</I> is found will be highlighted until the first |
| 138 | instance of <I>er</I>. |
| 139 | <I> |
| 140 | <P> |
| 141 | </DL> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 142 | </I><A NAME="lbAE"> </A> |
| 143 | <H2>FILES</H2> |
| 144 | |
| 145 | <DL COMPACT> |
| 146 | <DT><I>$SYSCONFDIR/nanorc</I> |
| 147 | |
| 148 | <DD> |
| 149 | System-wide configuration file |
| 150 | <DT><I>~/.nanorc</I> |
| 151 | |
| 152 | <DD> |
| 153 | Per-user configuration file |
| 154 | </DL> |
| 155 | <A NAME="lbAF"> </A> |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 156 | <H2>SEE ALSO</H2> |
| 157 | |
| 158 | |
| 159 | <DL COMPACT> |
| 160 | <DT><B><A HREF="http://localhost/cgi-bin/man/man2html?1+nano">nano</A></B>(1)<DD> |
| 161 | </DL> |
| 162 | <P> |
| 163 | |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 164 | <I>/usr/share/doc/nano/examples/nanorc.sample</I> (or equivalent on your |
| 165 | system) |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 166 | <A NAME="lbAG"> </A> |
| 167 | <H2>AUTHOR</H2> |
| 168 | |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 169 | Chris Allegretta <<A HREF="mailto:chrisa@asty.org">chrisa@asty.org</A>>, et al (see |
| 170 | <I>AUTHORS</I> |
| 171 | |
| 172 | and |
| 173 | <I>THANKS</I> |
| 174 | |
| 175 | for details). |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 176 | This manual page was written by Jordi Mallach <<A HREF="mailto:jordi@gnu.org">jordi@gnu.org</A>>. |
| 177 | <P> |
| 178 | |
| 179 | <HR> |
| 180 | <A NAME="index"> </A><H2>Index</H2> |
| 181 | <DL> |
| 182 | <DT><A HREF="#lbAB">NAME</A><DD> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 183 | <DT><A HREF="#lbAC">DESCRIPTION</A><DD> |
| 184 | <DT><A HREF="#lbAD">OPTIONS</A><DD> |
| 185 | <DT><A HREF="#lbAE">FILES</A><DD> |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 186 | <DT><A HREF="#lbAF">SEE ALSO</A><DD> |
| 187 | <DT><A HREF="#lbAG">AUTHOR</A><DD> |
| 188 | </DL> |
| 189 | <HR> |
| 190 | This document was created by |
| 191 | <A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>, |
| 192 | using the manual pages.<BR> |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 193 | Time: 22:28:00 GMT, June 19, 2003 |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 194 | </BODY> |
| 195 | </HTML> |