diff --git a/doc/nano.texi b/doc/nano.texi
index 3099ca314003a88e4c34f173d7dbe5a84923c685..98e7a0692d2077f1ca67b5d26b6aee0eb2cc6339 100644
--- a/doc/nano.texi
+++ b/doc/nano.texi
@@ -1247,6 +1247,13 @@ Deletes the character under the cursor.
 @item backspace
 Deletes the character before the cursor.
 
+@item recordmacro
+Starts the recording of keystrokes --- the keystrokes are stored
+as a macro.  When already recording, the recording is stopped.
+
+@item runmacro
+Replays the keystrokes of the last recorded macro.
+
 @item undo
 Undoes the last performed text action (add text, delete text, etc).
 
diff --git a/doc/nanorc.5 b/doc/nanorc.5
index 30731cb401bf7c55be46c82de2f1ff88a016ffb0..65741e8b93991fff542466a19e80ed28b73bf728 100644
--- a/doc/nanorc.5
+++ b/doc/nanorc.5
@@ -606,6 +606,13 @@ Deletes the character under the cursor.
 .B backspace
 Deletes the character before the cursor.
 .TP
+.B recordmacro
+Starts the recording of keystrokes -- the keystrokes are stored
+as a macro.  When already recording, the recording is stopped.
+.TP
+.B runmacro
+Replays the keystrokes of the last recorded macro.
+.TP
 .B undo
 Undoes the last performed text action (add text, delete text, etc).
 .TP