Note to self: Emacs macros

2009 March 19
tags:
by guenthernoack
Shortcut Meaning
C-x ( starts macro recording
C-x ) finishes macro recording
C-x e executes a recorded macro
C-u number C-x e executes the macro number times

Example: C-x ( C-w \ e m p h { C-y } C-x )
This surrounds the selected region with \emph{} (a LaTeX command) and places the cursor after the closing bracket.

References
Also have a look at the Emacs wiki’s page on this and that nice article with video tutorial on that weblog on Emacs.

One Response leave one →
  1. 2009 March 19
    Frank permalink

    Mit AUCTeX (http://www.emacswiki.org/emacs-en/AUCTeX) geht das Beispiel aber einfacher: C-c C-f C-e (oder via Menü)

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS