From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Bloggs Newsgroups: gmane.emacs.help Subject: Re: parametrized function definition Date: Mon, 14 Jul 2008 21:23:12 +0100 Message-ID: <87ej5w1ahb.fsf@DEBLAP1.BeNet> References: <87zlosz4n6.fsf@DEBLAP1.BeNet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216068174 14314 80.91.229.12 (14 Jul 2008 20:42:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 20:42:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 22:43:40 2008 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.50) id 1KIUtX-0007Pe-Os for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 22:43:40 +0200 Original-Received: from localhost ([127.0.0.1]:36970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIUsf-00022P-JY for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 16:42:45 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 14 Jul 2008 15:23:12 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:YjBj33XqGgSglmUKFNhHswxy/2M= Original-Lines: 28 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-0aeB/0FseAy4VnzCrwEi16qkX+7nc8WkUsj7nfQq4a5eHTBGG9FUqO+a4PMans6HWGgUMNN3nvqrlHJ!QJ8164TYGGCd04mLscZ+IuSojPdOOfKS/4gddycxvZu/9y+0iMdF Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:160221 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:55571 Archived-At: adamsonj@email.unc.edu (Joel J. Adamson) writes: > Joe Bloggs writes: > >> Hi, I am trying to write a function that allows me to quickly bind a key combination >> to insert arbitrary text: > > You mean like a keyboard macro? C-x ( t e x t t h a t y o u w a n t t o > i n s e r t C-x ), then C-x e to insert the text. > > You can also create macros of arbitrary keyboard movements, not just > text insertion. Right now I'm defining a keyboard macro to insert this > text. > > C-x e > => > Right now I'm defining a keyboard macro to insert this text. > > Joel > -- > Joel J. Adamson > (303) 880-3109 > Public key: http://pgp.mit.edu > http://www.unc.edu/~adamsonj > http://trashbird1240.blogspot.com The problem with macros is that if I have several of them then several keys presses are required to access each one. I prefer to have simple two-finger key combinations.