all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: googleartist@yahoo.com (Artist)
Subject: Re: capturing commands
Date: 17 Oct 2002 20:29:08 -0700	[thread overview]
Message-ID: <de3ad953.0210171929.2d4c0948@posting.google.com> (raw)
In-Reply-To: m3it01on17.fsf@localhost.localdomain

Michael Slass <miknrene@drizzle.com> wrote in message news:<m3it01on17.fsf@localhost.localdomain>...
>file.
> 
(> If you want to save the names of all your commands to a file, try
> adding this to your .emacs
> 
> (defvar emacs-command-log
>         (find-file "~/my-emacs-commands"))
> 
> (defun log-last-command ()
>   (save-excursion
>     (let ((com (prin1-to-string last-command))
>           (deactivate-mark nil))
>       (set-buffer emacs-command-log)
>       (goto-char (point-max))
>       (insert "\n" com))))
> 
> (add-hook 'post-command-hook 'log-last-command)

  This works and really good for simple things
  Now only if we can build automagic menu out of this stuff, for the
mostly access commands ( except self-insert-command and few others for
which I would define) and select directly from there, that would be
nice.


Thanks,
Artist

  reply	other threads:[~2002-10-18  3:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 22:08 capturing commands merik
2002-10-16 22:22 ` Barry Margolin
2002-10-16 23:14   ` Michael Slass
2002-10-17  0:15     ` merik
2002-10-17  1:43       ` Michael Slass
2002-10-18  3:29         ` Artist [this message]
2002-10-18  7:40           ` Bernd Wolter
2002-10-18 16:28             ` Clemens Fischer
2002-10-17 15:03 ` D. Goel
2002-10-18 18:03   ` kgold
2002-10-18 19:31     ` D. Goel

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=de3ad953.0210171929.2d4c0948@posting.google.com \
    --to=googleartist@yahoo.com \
    /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.