unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: macro keybinding
Date: Wed, 01 Oct 2008 22:35:55 -0600	[thread overview]
Message-ID: <gc1j2o$vq8$1@ger.gmane.org> (raw)
In-Reply-To: <8c1eed9b0810010220q2227a435web4710d0f25ce79d@mail.gmail.com>

Stefan Thomas wrote:
> Hi,
> since Yesterdy I try to understand emacs, so I'm a bloody newbie.
> I habve a question on macro keybindings. In the manual I've read:
> "If you give |insert-kbd-macro| a numeric argument, it makes additional 
> Lisp code to record the keys (if any) that you have bound to macroname, 
> so that the macro will be reassigned the same keys when you load the file. "
> But I don't understand that. I don't know, how to save the keybinding 
> for a defined macro forever.

C-x C-f ~/.emacs
M->
M-x insert-kbd-macro RET
C-x C-s

Compare the result of `M-x insert-kbd-macro' with `C-u M-x
insert-kbd-macro'.

> And my next question would be: I would like to define some macros in a 
> el-file.
> How can I load them automatically, when I start emacs?

Put (load "/path/to/my-macros.el") in your ~/.emacs file

-- 
Kevin Rodgers
Denver, Colorado, USA





  reply	other threads:[~2008-10-02  4:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01  9:20 macro keybinding Stefan Thomas
2008-10-02  4:35 ` Kevin Rodgers [this message]
     [not found] <mailman.20328.1222869723.18990.help-gnu-emacs@gnu.org>
2008-10-01 14:57 ` Cor Gest

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gc1j2o$vq8$1@ger.gmane.org' \
    --to=kevin.d.rodgers@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).