Inserting the kbd tag in interactively17 Nov 2014, by Artur Malabarba.
Emacs.SE Lessons post series
It doesn't take a psychic to guess the
<kbd> tag will be useful when
writing about Emacs. When Jorge Navarro asked for the best way to do this, over
at Emacs.SE, I thought I'd share the snippet I use.
This simple command will ask for a key sequence (just like C-h k would) and will insert it for you. If you want to write the sequence manually, just hit RET when prompted. C-c k feels like a nice binding for it.
It should work in both
A big kudos to u/abo-abo, for suggesting the use of