From 1a5c6e9ad91f097ae1677fc00811ad3b491e25ab Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Mon, 15 Nov 2010 06:58:22 +0000 Subject: [PATCH] 2010-11-15 Chris Allegretta * Add a section to the FAQ about using nanorc on Win32 systems. git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_2_branch@4521 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ doc/faq.html | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d81f6ce7..28e14ea7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2010-11-15 Chris Allegretta + * Add a section to the FAQ about using nanorc on Win32 systems. + 2010-11-12 Chris Allegretta * Add check for RESTRICTED mode back to speller, suspend and insert file routines, since adding key bindings broke the fact that they should be diff --git a/doc/faq.html b/doc/faq.html index e178704e..0efe6a04 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -29,7 +29,8 @@ 3.6. How can I make the executable smaller? This is too bloated!
3.7. Tell me more about this multibuffer stuff!
3.8. Tell me more about this verbatim input stuff!
- 3.9. How do I make a .nanorc file that nano will read when I start it?

+ 3.9. How do I make a .nanorc file that nano will read when I start it?
+ 3.9.1. How about in Win32?

4. Running

4.1. How do I open a file with a name beginning with '+' from the command line?
4.2. Ack! My Backspace/Delete/Enter/Meta/double bucky key doesn't seem to work! What can I do?
@@ -167,6 +168,10 @@

Alternatively, if you've enabled Unicode support (see section 5.3), you can press Meta-V and then type a six-digit hexadecimal code from 000000 to 10FFFF (case-insensitive), and the character with the corresponding value will be inserted instead. The prompt will change to "Unicode Input" when you do this.

3.9. How do I make a .nanorc file that nano will read when I start it?

It's not hard at all! But, your version of nano must have been compiled with --enable-nanorc, and again must be version 1.1.12 or newer (use nano -V to check your version and compiled features). Then simply copy the nanorc.sample that came with the nano source or your nano package (most likely in /usr/doc/nano) to .nanorc in your home directory. If you didn't get one, the syntax is simple. Flags are turned on and off by using the word set and the getopt_long flag for the feature, for example "set nowrap" or "set suspend".

+

3.9. How about in Win32?

+

If you're using the official nano .zip file and have extracted all the files, you should take the file nano.rc and place it somewhere on your Win32 system (for example if you have write permission to do so, at the top of C:\). Then you must create an Environment variable called HOME which points to the directory where you put nano.rc. In Windows XP, you can get to Environment variables by right-clicking "My Computer" either on the desktop or in the Start Menu, and selecting Properties. This should bring up the System Properties panel. Then click the Advanced Tab, and there should be a button called Environment Variables. Click that to bring up the Environment Variables section. Now, under User Variables you should be able to click the New button, and make a new Variables Name called HOME, with the Variable Value of whatever path you copied nano.rc into (just the directory name; don't add nano.rc onto the end).

+

We're still working on documentatino for enabling synax highlighting on Win32; please bear with us

+

Note that the nano.rc file must remain Unix formated in order for nano to unerstand it. In other words, you should use probably only use nano to edit its config file. Other programs like Wordpad and Notepad will either convert the file to DOS format when saving, and the latter does not even properly read Unix-formatted files to begin with.


4. Running

4.1. How do I open a file with a name beginning with '+' from the command line?

-- 2.39.5