summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-11-08 14:16:39 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-11-08 14:16:39 -0700
commite62aea3c550ee220f0c975da86e0e6d16feae6f9 (patch)
tree51590d6b3453cdadda59cff1b284d06035cf4124
parentf7989f2161f546ccf4913265d10d1c1cf8f19315 (diff)
downloadwiki-e62aea3c550ee220f0c975da86e0e6d16feae6f9.tar.gz
fix formatting of literal text
-rw-r--r--blog/entry/emacs-combined-repeat.mdwn16
1 files changed, 8 insertions, 8 deletions
diff --git a/blog/entry/emacs-combined-repeat.mdwn b/blog/entry/emacs-combined-repeat.mdwn
index 94dd078..ed530c8 100644
--- a/blog/entry/emacs-combined-repeat.mdwn
+++ b/blog/entry/emacs-combined-repeat.mdwn
@@ -1,18 +1,18 @@
[[!meta title="Combining repeat and repeat-complex-command"]]
[[!tag tech emacs]]
-In Emacs, you can use =C-x z= to repeat the last command you input, and
+In Emacs, you can use `C-x z` to repeat the last command you input, and
subsequently you can keep tapping the 'z' key to execute that command again
and again. If the command took minibuffer input, however, you'll be asked for
-that input again. For example, suppose you type =M-z := to delete through the
+that input again. For example, suppose you type `M-z :` to delete through the
next colon character. If you want to keep going and delete through the next
-few colons, you would need to use =C-x z : z : z := etc. which is pretty
-inconvenient. So there's also =C-x ESC ESC RET= or =C-x M-: RET=, which will
+few colons, you would need to use `C-x z : z : z :` etc. which is pretty
+inconvenient. So there's also `C-x ESC ESC RET` or `C-x M-: RET`, which will
repeat the last command which took minibuffer input, as if you'd given it the
-same minibuffer input. So you could use =M-z : C-x M-: RET C-x M-: RET= etc.,
-but then you might as well just keep typing =M-z := over and over. It's also
-quite inconvenient to have to remember whether you need to use =C-x z= or =C-x
-M-: RET=.
+same minibuffer input. So you could use `M-z : C-x M-: RET C-x M-: RET` etc.,
+but then you might as well just keep typing `M-z :` over and over. It's also
+quite inconvenient to have to remember whether you need to use `C-x z` or `C-x
+M-: RET`.
I wanted to come up with a single command which would choose the correct
repetition method. It turns out it's a bit involved, but here's what I came