all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Newbie: alias a function name
@ 2008-01-04 21:59 Matthew.Pettis
  2008-01-04 22:04 ` Matthew.Pettis
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew.Pettis @ 2008-01-04 21:59 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Newbie: alias a function name
  2008-01-04 21:59 Newbie: alias a function name Matthew.Pettis
@ 2008-01-04 22:04 ` Matthew.Pettis
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew.Pettis @ 2008-01-04 22:04 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-04 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 21:59 Newbie: alias a function name Matthew.Pettis
2008-01-04 22:04 ` Matthew.Pettis

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.