From: "Matthew.Pettis@gmail.com" <Matthew.Pettis@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Newbie: alias a function name
Date: Fri, 4 Jan 2008 14:04:47 -0800 (PST) [thread overview]
Message-ID: <79111d73-5c5d-4474-95a1-c6e8310e57ee@j78g2000hsd.googlegroups.com> (raw)
In-Reply-To: 5424779f-fb2e-4a06-b814-fbae934dc2e0@h11g2000prf.googlegroups.com
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"
<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
prev parent reply other threads:[~2008-01-04 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-04 21:59 Newbie: alias a function name Matthew.Pettis
2008-01-04 22:04 ` Matthew.Pettis [this message]
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=79111d73-5c5d-4474-95a1-c6e8310e57ee@j78g2000hsd.googlegroups.com \
--to=matthew.pettis@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.