|
From: | Kevin Rodgers |
Subject: | Re: Temporarily Key-binding to A Script |
Date: | Sat, 24 Oct 2009 08:29:42 -0600 |
User-agent: | Thunderbird 2.0.0.23 (Macintosh/20090812) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |