[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spaces rather than tabs by a major mode hook
From: |
Eli Zaretskii |
Subject: |
Re: Spaces rather than tabs by a major mode hook |
Date: |
Fri, 10 Jun 2022 09:41:43 +0300 |
> Date: Fri, 10 Jun 2022 05:46:44 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> > > The TAB key is usually bound to some indentation command such as
> > > indent-according-to-mode. So bind that to some other key and TAB to
> > > self-insert-command.
> >
> >
> > Or use "C-q TAB" to insert a literal TAB no matter what command TAB is
> > bound to.
>
> A superior choice would be to all TAB to be a tab by default, rather than
> binding to some other thing, making the key non-functional. RETURN could
> introduce indentation, but with the tab
> key introducing a literal tab.
No, that would be a step back. TAB is important because it re-indents
the current line, so you don't need to type RET and insert a newline
if all you want is re-indentation.
It is a relatively rare situation where you need to insert a literal
TAB, so having it bound to self-insert-command would be much less
useful than its current binding.
I think your current views are because you are trying to fight Emacs
features instead of using them to your benefit. Why do you need to
insert literal TABs so much? You never explained that.
- RE: [External] : Re: Spaces rather than tabs by a major mode hook, (continued)
- RE: [External] : Re: Spaces rather than tabs by a major mode hook, Drew Adams, 2022/06/09
- RE: [External] : Re: Spaces rather than tabs by a major mode hook, Drew Adams, 2022/06/09
- Re: Spaces rather than tabs by a major mode hook, Tassilo Horn, 2022/06/09
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/09
- Re: Spaces rather than tabs by a major mode hook, Tassilo Horn, 2022/06/09
- Re: Spaces rather than tabs by a major mode hook, Eli Zaretskii, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, Po Lu, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, tomas, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook,
Eli Zaretskii <=
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, Eli Zaretskii, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, Eli Zaretskii, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, Eli Zaretskii, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, Eli Zaretskii, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10
- Re: Spaces rather than tabs by a major mode hook, goncholden, 2022/06/10