* Reassigning the tab key in topic mode
@ 2003-02-10 14:49 Jeffery B. Rancier
2003-02-10 16:00 ` Kai Großjohann
0 siblings, 1 reply; 3+ messages in thread
From: Jeffery B. Rancier @ 2003-02-10 14:49 UTC (permalink / raw)
I'm trying to reassign the function of the tab key while in topic mode
in the group buffer (without any luck). Here what I have added to my
~/.gnus:
(defun jbr-gnus-topic-mode-hook()
(local-set-key [tab] 'gnus-group-next-unread-group)
(jbr-pause-message "Set TAB key to gnus-group-next-unread-group" ))
(add-hook 'gnus-topic-mode-hook 'jbr-gnus-topic-mode-hook)
Evaluating the above code, restarting Gnus, appears to have no effect
on this:
,----
| <tab> runs the command gnus-topic-indent
| which is an interactive compiled Lisp function in `gnus-topic'.
| (gnus-topic-indent &optional UNINDENT)
|
| Indent a topic -- make it a sub-topic of the previous topic.
| If UNINDENT, remove an indentation.
`----
Can I assume that the tab key is assigned after the
gnus-topic-mode-hook is run? Should I set this to global? Or is is
that when my function is run, I'm not in the group buffer yet?
--
Thanks,
Jeff
,----
| Jeffery B. Rancier
|
| Softechnics
| a METTLER TOLEDO company
`----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reassigning the tab key in topic mode
2003-02-10 14:49 Reassigning the tab key in topic mode Jeffery B. Rancier
@ 2003-02-10 16:00 ` Kai Großjohann
2003-02-10 20:55 ` Jeffery B. Rancier
0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2003-02-10 16:00 UTC (permalink / raw)
I wonder whether topic mode is a minor mode and local-set-key binds
the key in the major mode map?
Try (define-key gnus-topic-mode-map ...) -- does it help?
--
A turnip curses Elvis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reassigning the tab key in topic mode
2003-02-10 16:00 ` Kai Großjohann
@ 2003-02-10 20:55 ` Jeffery B. Rancier
0 siblings, 0 replies; 3+ messages in thread
From: Jeffery B. Rancier @ 2003-02-10 20:55 UTC (permalink / raw)
>>>>> "Kai" == Kai Großjohann <kai.grossjohann@uni-duisburg.de> writes:
> Try (define-key gnus-topic-mode-map ...) -- does it help?
(defun jbr-gnus-topic-mode-hook()
(define-key gnus-topic-mode-map [tab] 'gnus-group-next-unread-group)
(define-key gnus-topic-mode-map [S-tab] 'gnus-group-prev-unread-group)
(jbr-pause-message "Set TAB key to gnus-group-next-unread-group" )
(jbr-pause-message "Set S-TAB key to gnus-group-prev-unread-group" ))
(add-hook 'gnus-topic-mode-hook 'jbr-gnus-topic-mode-hook)
That did it, no move moving Topics for me! Thanks Kai!
--
Thanks,
Jeff
,----
| Jeffery B. Rancier
|
| Softechnics
| a METTLER TOLEDO company
`----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-10 20:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-10 14:49 Reassigning the tab key in topic mode Jeffery B. Rancier
2003-02-10 16:00 ` Kai Großjohann
2003-02-10 20:55 ` Jeffery B. Rancier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).