Skip to content

Instantly share code, notes, and snippets.

@To1ne
To1ne / keyboard-much.org
Last active February 28, 2018 14:56 — forked from pjaspers/keyboard-much.markdown
Everything you never wanted to know about keyboards at 10to1
#
# A little function to add html markup around emacs commands found in text.
#
def markup_emacs(text)
# defuns are put between () # TODO nested defuns
text.gsub!(/(\([^\)]+\))/, '<code>\1</code>')
# keyboard strokes
# -> M-x some-defun
# -> and other combo's
key = '(?:&lt;[^&]+&gt;|\w\b|[^\s\w])'