[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-nano] command-line override of options set in .nanorc?
From: |
Mike Brown |
Subject: |
[Help-nano] command-line override of options set in .nanorc? |
Date: |
Sat, 22 Mar 2014 11:15:01 -0600 (MDT) |
I usually want autoindent turned on, so my .nanorc has "set autoindent",
among many other customizations.
However, every once in a while, I need to copy-paste something that's
preformatted, so it would be nice to be able to just override this one
setting when I invoke nano.
I was hoping there would be a command-line way to unset options that were set
in the .nanorc. For example, for the single-letter options, you could use
"-+" instead of "-", like in less(1):
nano -+i
For the long option names, you would use an "unset" prefix:
nano --unset-autoindent
There's no such capability, though, unless I'm missing something.
Is it possible? Maybe consider this a feature request.
(I realize I could remove the "set autoindent" from my .nanorc and instead
add -i or --autoindent to the command-line options, but it seems like the
.nanorc is the ideal location for the things you want to be the defaults
most of the time, so I want to keep the autoindent set in there.)
Thanks for listening.
- [Help-nano] command-line override of options set in .nanorc?,
Mike Brown <=