* Temporarily Key-binding to A Script
@ 2009-08-30 0:14 Wu, Kejia
0 siblings, 0 replies; 6+ messages in thread
From: Wu, Kejia @ 2009-08-30 0:14 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I have a script, foo.py. How should I define temporarily key-binding to
the script only for current session?
Cheers,
Kejia
^ permalink raw reply [flat|nested] 6+ messages in thread
* Temporarily Key-binding to A Script
@ 2009-09-01 22:26 Wu, Kejia
0 siblings, 0 replies; 6+ messages in thread
From: Wu, Kejia @ 2009-09-01 22:26 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I have a script, foo.py. How should I define temporarily key-binding to
the script only for current session?
Cheers,
Kejia
^ permalink raw reply [flat|nested] 6+ messages in thread
* Temporarily Key-binding to A Script
@ 2009-10-24 13:57 Wu, Kejia
2009-10-24 14:29 ` Kevin Rodgers
0 siblings, 1 reply; 6+ messages in thread
From: Wu, Kejia @ 2009-10-24 13:57 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I have a script, foo.py. How should I define temporarily key-binding to
the script only for current session?
Cheers,
Kejia
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Temporarily Key-binding to A Script
2009-10-24 13:57 Wu, Kejia
@ 2009-10-24 14:29 ` Kevin Rodgers
0 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2009-10-24 14:29 UTC (permalink / raw)
To: help-gnu-emacs
Wu, Kejia wrote:
> I have a script, foo.py. How should I define temporarily key-binding to
> the script only for current session?
See the "Specifying File Variables" node of the Emacs manual, especially
the `eval' pseudo-variable.
eval: (global-set-key (kbd "C-c z") (lambda () (shell-command "/path/to/foo.py")))
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Temporarily Key-binding to A Script
[not found] <mailman.9406.1256392677.2239.help-gnu-emacs@gnu.org>
@ 2009-10-24 14:38 ` Pascal J. Bourguignon
2009-11-03 3:38 ` Wu, Kejia
0 siblings, 1 reply; 6+ messages in thread
From: Pascal J. Bourguignon @ 2009-10-24 14:38 UTC (permalink / raw)
To: help-gnu-emacs
"Wu, Kejia" <w.kejia@gmail.com> writes:
> Hi all,
>
> I have a script, foo.py. How should I define temporarily key-binding to
> the script only for current session?
M-x local-set-key RET key RET comand RET
--
__Pascal Bourguignon__
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Temporarily Key-binding to A Script
2009-10-24 14:38 ` Temporarily Key-binding to A Script Pascal J. Bourguignon
@ 2009-11-03 3:38 ` Wu, Kejia
0 siblings, 0 replies; 6+ messages in thread
From: Wu, Kejia @ 2009-11-03 3:38 UTC (permalink / raw)
To: Pascal J. Bourguignon; +Cc: help-gnu-emacs
Hi Bourguignon,
Thanks a lot!
在 2009-10-24六的 16:38 +0200,Pascal J. Bourguignon写道:
> "Wu, Kejia" <w.kejia@gmail.com> writes:
>
> > Hi all,
> >
> > I have a script, foo.py. How should I define temporarily key-binding to
> > the script only for current session?
>
> M-x local-set-key RET key RET comand RET
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-11-03 3:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.9406.1256392677.2239.help-gnu-emacs@gnu.org>
2009-10-24 14:38 ` Temporarily Key-binding to A Script Pascal J. Bourguignon
2009-11-03 3:38 ` Wu, Kejia
2009-10-24 13:57 Wu, Kejia
2009-10-24 14:29 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2009-09-01 22:26 Wu, Kejia
2009-08-30 0:14 Wu, Kejia
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 read-only IMAP folder(s) and NNTP newsgroup(s).