Discussion:
Best method to disable TAB in topic-mode?
Igor Sosa Mayor
2015-02-28 14:10:36 UTC
Permalink
Hi,

I'm really a bit desperate because I am not able to achieve a very easy
task: I want to disable TAB in topic-mode, because I am all the time
indenting the topics by mistakenly pressing TAB...

What is the best method to disable the key? I have tried a lot of
combinations such as:
(define-key gnus-topic-mode-map (kbd "[tab]") nil)
(define-key gnus-topic-mode-map (kbd "<tab>") nil)
etc.

with no success...

Any hint? Many thanks in advance!
--
:: Igor Sosa Mayor :: ***@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
Andreas Schwab
2015-02-28 14:29:22 UTC
Permalink
Post by Igor Sosa Mayor
Any hint? Many thanks in advance!
Either "\t" or (kbd "TAB").

Andreas.
--
Andreas Schwab, ***@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Igor Sosa Mayor
2015-02-28 17:49:49 UTC
Permalink
Post by Andreas Schwab
Either "\t" or (kbd "TAB").
thanks for your answer. But no success...
Eric Abrahamsen
2015-03-01 03:03:42 UTC
Permalink
Post by Igor Sosa Mayor
Post by Andreas Schwab
Either "\t" or (kbd "TAB").
thanks for your answer. But no success...
I was annoyed by the same thing, and here's how I solved it:

(eval-after-load "gnus-topic"
'(progn
(define-key gnus-topic-mode-map [tab] nil)
(define-key gnus-topic-mode-map "\C-i" nil)))

Works fine here!
Igor Sosa Mayor
2015-03-01 07:05:04 UTC
Permalink
Post by Eric Abrahamsen
(eval-after-load "gnus-topic"
'(progn
(define-key gnus-topic-mode-map [tab] nil)
(define-key gnus-topic-mode-map "\C-i" nil)))
Works fine here!
exactly! many thanks!

Continue reading on narkive:
Loading...