[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opening files from a command
From: |
Johan Bockgård |
Subject: |
Re: Opening files from a command |
Date: |
Mon, 03 Nov 2008 17:51:02 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) |
Xavier Maillard <xma@gnu.org> writes:
> C-x ( ;; Start macro
> C-SPC C-e M-w C-a C-n ;; Put line on kill-ring
> C-x 4 f C-y <return> ;; Open that file in a different window
> C-x o ;; Go back to the shell buffer
> C-x ) ;; End macro
>
> Do you know an emacs-mode to automatically do the transcription
> between an emacs macro like the one on the left to a more
> textified version like the one on the right side ? Here the macro
> is pretty basic but with more complex ones, it could help to have
> such description on demand.
Like
(format-kbd-macro
(kbd
"C-x (
C-SPC C-e M-w C-a C-n
C-x 4 f C-y <return>
C-x o
C-x )")
t)
=>
"C-SPC ;; set-mark-command
C-e ;; move-end-of-line
M-w ;; kill-ring-save
C-a ;; move-beginning-of-line
C-n ;; next-line
C-x 4 f ;; find-file-other-window
C-y ;; yank
RET ;; newline
C-x o ;; other-window"
Cf. `edit-kbd-macro'.