Skip to content

Commit

Permalink
usage: keyboard macros
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Jul 31, 2024
1 parent 3975eff commit 0ae7533
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ use project-aware commands.

<img class="" src="/tetris.png" alt="File tree on the left.">

Terminal integration, multiple cursors, interactive grep, directory mode, tabs, Git interface,
Terminal integration, multiple cursors, interactive grep, directory mode, tabs, Git interface, keyboard macros,

and support for:

Expand Down
15 changes: 15 additions & 0 deletions content/en/usage/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,21 @@ You can do more and *list all Lem's existing keybindings* with `M-x documentatio
<img class="" src="/documentation-describe-bindings.png" alt="">


## Keyboard macros

Lem supports recording and playing keyboard macros.

Start recording with `C-x (` (`M-x kbdmacro-start`).

Now, press the keys and keyboard shortcuts that you want to replay automatically.

Stop recording with `C-x )` (`M-x kbdmacro-end`).

And now, re-play your key combination with `C-x e` (`M-x kbdmacro-execute`).

Another command you might want to use is `M-x apply-macro-to-region-lines`,
to re-play the macro only in the selected region.


## grep

Expand Down

0 comments on commit 0ae7533

Please sign in to comment.