Endless Parentheses

Concise ramblings on Emacs productivity.

Meta Binds Part 1: Drunk in the Dark

Learning numeric prefixes is a vital step in the road to Emacs mastery, and it's probably one of the editor's least appreciated features. It took me more than a year to get the hang of doing C-3 C-k instead of C-a C-space C-n C-n C-n C-w.

Still, having three different ways of invoking this marvel is one-too-many for my taste, specially when they take up premium keyboard space. M-9 isn't just a nice key, it's a key I can hit while drunk in the dark and wearing boxing gloves —it deserves an equally important command.

Coincidentally, backward-sexp and forward-sexp are divine commands with abhorrent default keybinds.

(global-set-key "\M-9" 'backward-sexp)
(global-set-key "\M-0" 'forward-sexp)
(global-set-key "\M-1" 'delete-other-windows)

C-x 1 for delete-other-windows isn't quite abhorrent, but it also deserves better.

Tags: navigation, meta, keybind, init.el, emacs

Say thanks on Gratipay
comments powered by Disqus