From 949fcde6f7107ee117c85283acc5857b1b507e83 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 25 Aug 2021 11:25:05 +0200 Subject: [PATCH] docs: indent the paragraphs in the FAQ that list commands to be typed And use a monospaced font for them. --- doc/faq.html | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/doc/faq.html b/doc/faq.html index e037b233..99a6df84 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -5,6 +5,9 @@ The GNU nano editor FAQ + @@ -127,16 +130,16 @@

It's simple really! As root, type rpm -Uvh nano-x.y-1*.rpm if you have a RedHat-ish system or dpkg -i nano_x.y-1*.deb if you have a Debian-ish system, where x.y is the version number of nano. There are other programs to install packages, and if you wish to use those, knock yourself out.

3.2. Compiling from source: WHAT THE HECK DO I DO NOW?

Okay, take a deep breath, this really isn't hard. Unpack the nano source with a command like:

-

tar -xvf nano-x.y.tar.gz

+

tar -xvf nano-x.y.tar.gz

Then you need to run configure with any options you might want (if any).

The average case is this:

-

cd nano-x.y/
+

cd nano-x.y/
./configure
make
- make install (as root, of course)

+ make install   #(as root, of course)

3.3. Why does everything go into /usr/local?

Well, that's what the configure script defaults to. If you wish to change this, simply do this:

-

./configure --prefix=/usr

+

./configure --prefix=/usr

This will put nano into /usr/bin when you run make install.

3.4. nano should automatically run strip on the binary when installing it!

It does when you use make install-strip. The default make install does not, and will not, run strip automatically.

@@ -179,7 +182,7 @@

On Debian and its derivatives, the Alt+Up keystroke on a Linux console produces by default a 'KeyboardSignal', which normally does absolutely nothing and is useless for the average user. To get the keystroke to work normally, run this in a Linux console:

- dumpkeys --full | sed s/KeyboardSignal/Up/ | sudo loadkeys - +

dumpkeys --full | sed s/KeyboardSignal/Up/ | sudo loadkeys -

You will need to run this command whenever you first switch to a Linux console. Or you can put the command in your .bashrc or equivalent, conditionalized with: if [ $TERM == linux ]; then ... ; fi.

@@ -220,16 +223,16 @@

If you want nano to actually use color, you have to specify the color configurations you want it to use in your .nanorc. Several example configurations are in the syntax/ subdirectory of the nano source, which are normally installed to /usr/local/share/nano/. To enable all of them, uncomment the line # include "/usr/local/share/nano/*.nanorc" in your nanorc. See also section 3.9.

4.9. How do I make nano my default editor (in Pine, mutt, etc.)?

You need to make nano your $EDITOR. If you want this to be saved, you should put a line like this in your .bashrc if you use bash (or .zshrc if you believe in zsh):

-

export EDITOR=/usr/local/bin/nano

+

export EDITOR=/usr/local/bin/nano

or, if you use tcsh, put this in your .cshrc file:

-

setenv EDITOR /usr/local/bin/nano

+

setenv EDITOR /usr/local/bin/nano

Change /usr/local/bin/nano to wherever nano is installed on your system. Type "which nano" to find out. This will not take effect until the next time you log in. So log out and back in again.

Then, on top of that, if you use Pine, you must go into setup (type S at the main menu), and then configure (type C). Hit Enter on the lines that say:

-

[ ] enable-alternate-editor-cmd
+

[ ] enable-alternate-editor-cmd
[ ] enable-alternate-editor-implicitly

Then exit (E) and select Yes (Y).

If you're a mutt user, you should see an effect immediately the next time you log in. No further configuration is needed. However, if you want to let people know you use nano to compose your email messages, you can put a line like this in your .muttrc:

-

my_hdr X-Composer: nano-x.y

+

my_hdr X-Composer: nano-x.y

Again, replace x.y with the version of nano you use.