Creating and Using Keyboard Macros (Record Macro, Play Macro) to Record and Playback Keystrokes in Emacs

  • Use C-x ( to start the macro (start recording keystrokes)
  • …Perform whatever keyboard actions…
  • Use C-x ) to stop the macro (stop recording keystrokes)
  • Playback the recorded macro anytime using C-x e

You can also assign different hot-keys for convenience:

(global-set-key [f1] 'start-kbd-macro)
(global-set-key [f2] 'end-kbd-macro)
(global-set-key [f3] 'call-last-kbd-macro)

Check out the KeyboardMacros Emacs Wiki page for more in-depth info on Emacs Keyboard Macros.

Share
This entry was posted in Uncategorized and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Related Posts:

One Trackback

  1. [...] I Grok2! Except when I don’t…. Skip to content AboutMy Windows gvim _vimrc file « Creating and Using Keyboard Macros (Record Macro, Play Macro) to Record and Playback Keystro… [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*