From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Matthew.Pettis@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Newbie: alias a function name Date: Fri, 4 Jan 2008 14:04:47 -0800 (PST) Organization: http://groups.google.com Message-ID: <79111d73-5c5d-4474-95a1-c6e8310e57ee@j78g2000hsd.googlegroups.com> References: <5424779f-fb2e-4a06-b814-fbae934dc2e0@h11g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199486469 27927 80.91.229.12 (4 Jan 2008 22:41:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2008 22:41:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 04 23:41:29 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 1JAvEG-0006jh-Tl for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 23:41:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAvDu-0001xZ-Ea for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 17:41:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j78g2000hsd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 163.231.6.86 Original-X-Trace: posting.google.com 1199484287 25369 127.0.0.1 (4 Jan 2008 22:04:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 Jan 2008 22:04:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j78g2000hsd.googlegroups.com; posting-host=163.231.6.86; posting-account=_JtuZQoAAACM58JzSWb-Qwm-3GCaNe_g User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 westlock.int.westgroup.com:80 (squid/2.6.STABLE16) Original-Xref: shelby.stanford.edu gnu.emacs.help:155082 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:50504 Archived-At: never mind -- as usual, i found it after posting the question... (defalias 'new-name 'old-name) sorry, matt On Jan 4, 3:59 pm, "Matthew.Pet...@gmail.com" wrote: > Hi, > > I would like to redefine: > > M-x toggle-truncate-lines > > as > > M-x ww > > Now, I've seen how to map keys to functions, but I haven't seen how to > alias a function name like toggle-truncate-lines to another name. I'm > sure it's simple, but all I can find info on is key-binding. Can > someone point me to help on this? > > thanks, > matt