delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/23/16:49:05

Sender: nate AT cartsys DOT com
Message-ID: <36F80A24.905C5B0C@cartsys.com>
Date: Tue, 23 Mar 1999 13:39:48 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.3 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: EMACS is superb
Reply-To: djgpp AT delorie DOT com

sl wrote:

>         How does it make sense that in order to record a macro you have to
> type in approx 3 "shortcut keys" and in order to use the macro you have to
> type 2 "shortcut keys" .. there's nothing short/easy about them.. I highly
> dislike how EMACS uses ctrl-this or that for EVERY key.. it's UGLY

Actually, you can bind whatever keys you want to a macro.  Use C-x ( and
C-x ) to define the macro as usual.  Then do M-x name-last-kbd-macro and
give the thing a name ("foo").  You can now run it with M-x foo, if that
helps, and then use M-x global-set-key to assign it to any other key you
want.  This is extremely helpful if you have some simple task you need
to do a lot, but don't want to learn Lisp to write it.

These commands are on the quick-reference card, btw, which I *highly*
recommend you print out and keep in a convenient place.

There are also several commands for editing the definition of a macro;
do C-h a kbd-macro for more info.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019