Keybinding to skip to beginning of indent?


#1

In emacs you can skip to the beginning of the indent of with Meta+M, which was actually far more useful than skipping to the beginning of the line, which is Ctrl+A in both emacs and atom.

Is there a keybinding, or a simple package that has this feature?

Just to clarify say you have some code

function example() {
  console.log('hello');
}

Meta+M would put you here:

function example() {
  console.log('hello');
  ^
}

Ctrl + A puts you here:

function example() {
  console.log('hello');
^
}

#2

In Atom (at least in the version I have running right now) Ctrl+A takes me to the beginning of the indent. A second press of Ctrl+A takes me to the beginning of the line at that point. To my knowledge, all the “go to beginning of line” keybindings work that way.