From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Anderson Newsgroups: gmane.emacs.help Subject: How do I bind a macro to a key? Date: Thu, 09 Oct 2003 21:40:13 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1065750013.4841.378.camel@syr-24-59-77-252.twcny.rr.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065750079 23070 80.91.224.253 (10 Oct 2003 01:41:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2003 01:41:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 03:41:18 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A7mHN-0000Hc-00 for ; Fri, 10 Oct 2003 03:41:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A7mH9-0007kn-3A for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2003 21:41:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A7mGu-0007iQ-Re for help-gnu-emacs@gnu.org; Thu, 09 Oct 2003 21:40:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A7mGO-0007Ya-E0 for help-gnu-emacs@gnu.org; Thu, 09 Oct 2003 21:40:47 -0400 Original-Received: from [64.246.36.112] (helo=torre.pghoster.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A7mGN-0007Xj-UV for help-gnu-emacs@gnu.org; Thu, 09 Oct 2003 21:40:16 -0400 Original-Received: from syr-24-59-77-252.twcny.rr.com (syr-24-59-77-252.twcny.rr.com [24.59.77.252]) (authenticated (0 bits)) by torre.pghoster.com (8.11.6/8.11.6) with ESMTP id h9A1eHh03842 for ; Thu, 9 Oct 2003 20:40:17 -0500 Original-To: help-gnu-emacs@gnu.org X-Mailer: Ximian Evolution 1.4.5 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13112 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13112 Is it possible to create a macro and bind it to a key (or set of keys) for the rest of the session? Sometimes when programming I'll find I need like 5 separate macros, and I don't know how to C-x e each one separately except for creating one, running down the code and running it, and creating another. This seems very inefficient. Is there a better way? Thanks in advance, Dan