help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-nano] command-line override of options set in .nanorc?


From: Chris Allegretta
Subject: Re: [Help-nano] command-line override of options set in .nanorc?
Date: Sat, 22 Mar 2014 17:28:13 -0400

Hi Mike,

Why would you not just toggle auto-indent off before pasting and back
on again if desired with Meta-I inside the editor?  I think that's
generally what is done.

On 3/22/14, Mike Brown <address@hidden> wrote:
> 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 mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-nano
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]