all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Temporarily Key-binding to A Script
Date: Sat, 24 Oct 2009 08:29:42 -0600	[thread overview]
Message-ID: <hbv30l$i0$1@ger.gmane.org> (raw)
In-Reply-To: <1256392650.6852.3.camel@beauty11.cs.concordia.ca>

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





  reply	other threads:[~2009-10-24 14:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-24 13:57 Temporarily Key-binding to A Script Wu, Kejia
2009-10-24 14:29 ` Kevin Rodgers [this message]
     [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
  -- strict thread matches above, loose matches on Subject: below --
2009-09-01 22:26 Wu, Kejia
2009-08-30  0:14 Wu, Kejia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hbv30l$i0$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.