ham@polya.stars.flab.Fujitsu.JUNET (Peter R. Ham) (11/03/88)
How do I bind a key into *Subject*'s local map? I know how to change the source file gnus.el, but barring that, how do I customize a mode in my init file? Can I make use of a mode hook or something? How do I do that? Specifically, can anyone tell me how to bind "^" to gnus-Subject-save-in-folder inside my init file and have that binding be local to the mode not global to all modes. Peter -- Peter Ham PO Box 3430 (415) 321-5746 MS Computer Science Student Stanford, CA ham@polya.stanfor.edu Stanford University 94309
umerin@UUNET.UU.NET (Masanobu UMEDA) (11/04/88)
Date: 2 Nov 88 17:07:45 GMT
From: flab!fgw!uunet!labrea.stanford.edu!polya!ham (Peter R. Ham)
How do I bind a key into *Subject*'s local map?
Specifically, can anyone tell me how to bind "^" to
gnus-Subject-save-in-folder inside my init file and have
that binding be local to the mode not global to all modes.
To bind a key locally, use function local-set-key in a hook as follows:
(setq gnus-Subject-mode-hook
'(lambda ()
(local-set-key "^" 'gnus-Subject-save-in-folder)))
Or instead, if you use gnus-Subject-save-in-folder as your standard
format, set variable gnus-article-default-saver as follows:
(setq gnus-article-default-saver 'gnus-Subject-save-in-folder)
`o' command in Subject mode will call gnus-Subject-save-in-folder.
Masanobu UMEDA
umerin@flab.flab.Fujitsu.JUNET
umerin%flab.flab.Fujitsu.JUNET@uunet.uu.NETham@POLYA.STANFORD.EDU (Peter R. Ham) (11/05/88)
Thanks, that's just the information that I needed. I can put the default saver setting in the local mode hook, right? Peter