Tweaking Doom Emacs to use SPC SPC

*
planted: 04/05/2025last tended: 05/05/2025

I've always liked the SPC SPC binding for M-x in spacemacs. It's perhaps the easiest keychaim to access so it makes it easy to run commands quickly.

So I missed it in Doom Emacs - especially as I'm using that on mobile. In Doom, SPC : is bound to M-x. I appreciate the inclination behind it - to feel familiar to : for commands in vi - but SPC : is a bit of a pain on my mobile keyboard.

So:

(map! :leader
      "SPC" nil
      :desc "M-x" "SPC" #'execute-extended-command)

in /.doom.d/config.el gives me back SPC SPC for commands.

That means that SPC SPC no longer provides the find file in project behaviour that it's bound to by default in Doom, but that's OK, I can use SPC p f for that.

1. Elsewhere

1.1. In my garden

Notes that link to this note (AKA backlinks).

1.3. Mentions

Recent changes. Source. Peer Production License.