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

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

Re: TAB key to insert tab character


From: Blake McBride
Subject: Re: TAB key to insert tab character
Date: Sat, 09 Feb 2008 14:56:02 -0600
User-agent: Thunderbird 2.0.0.6 (X11/20071022)

Will Parsons wrote:
Blake McBride wrote:
Peter Dyballa wrote:
Am 09.02.2008 um 00:36 schrieb Blake McBride:

What I want (in TEXT & FUNDAMENTAL modes) is for the TAB key to just add a TAB.
C-q TAB – is this a choice?
Of course not. It does work, but I'm not going to type C-q TAB every time I want a TAB any more than I'm willing to type C-q R every time I want an "R".

You could do what I do - bind Ctrl-Tab to insert an ASCII <tab>:

  (global-set-key [C-tab] (lambda () (interactive) (insert-char 9 1)))

- Will

I don't want to globally set anything. I like the way the TAB key works in C and Lisp modes. I just want to change its behavior in TEXT and FUNDAMENTAL modes.

Blake McBride


reply via email to

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