From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MelloBob Newsgroups: gmane.emacs.help Subject: define keyboard macro in text file Date: Fri, 4 Feb 2011 11:06:13 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1296886889 28743 80.91.229.12 (5 Feb 2011 06:21:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Feb 2011 06:21:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 05 07:21:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PlbWO-0004nj-Nk for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Feb 2011 07:21:24 +0100 Original-Received: from localhost ([127.0.0.1]:46954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlbWO-000187-8B for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Feb 2011 01:21:24 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!z3g2000prz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 207.102.130.136 Original-X-Trace: posting.google.com 1296846374 20997 127.0.0.1 (4 Feb 2011 19:06:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 Feb 2011 19:06:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z3g2000prz.googlegroups.com; posting-host=207.102.130.136; posting-account=ABEwJgoAAAC1F6nSxfugvLwMw0aH_wrF User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:184807 X-Mailman-Approved-At: Sat, 05 Feb 2011 01:18:10 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78969 Archived-At: I auto-create some files, templates really, which I then edit with emacs. I find that I need to create a macro which I use on the first pass clean up just about every time I do this. So ... Is it possible to include some text in the created file which defines the macro? After using it the one time I'd just delete the line from the file. If it means copying, pasting, evaluating in the lisp buffer ... it's probably just as easy to do it from the keyboard ... yup, the macro is very simple. Suggestions welcome ... even one that says I'm looking at the problem all wrong :)