bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55878: Complications of tabs and spaces


From: Jean Louis
Subject: bug#55878: Complications of tabs and spaces
Date: Sat, 25 Jun 2022 15:39:25 +0300
User-agent: Mutt/+ () (2022-05-21)

* goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text 
editors <bug-gnu-emacs@gnu.org> [2022-06-10 21:19]:
> 
> ------- Original Message -------
> On Friday, June 10th, 2022 at 9:44 PM, Lars Ingebrigtsen <larsi@gnus.org> 
> wrote:
> 
> 
> > goncholden goncholden@protonmail.com writes:
> >
> > > Meaning that although indentation is done with spaces, pressing the TAB 
> > > key still
> > > introduces a real tab?
> >
> >
> > If you want the TAB key to insert a TAB character, then rebind that key
> > to do that.
> 
> I would need information how to do that.

Solution
========

You may invoke TAB by doing:

{C-q TAB}

Next solution
=============

You could locally and temporarily bind key to TAB:

{M-x local-set-key RET TAB self-insert-command RET}

Then your TAB would give TAB character:                 OK?

Next solution
=============

Globally:

(global-set-key (kbd "TAB") #'self-insert-command)


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/





reply via email to

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