Sublime Forum

Emacs style tab / indentation behavior

#1

Is there anyway to get the emacs style tab key behavior for indenting?

Basically the tab key re-indents the current line. I rarely actually want to insert spacing when I hit the tab key.

Is it as simple as mapping reindent-line to tab? Will other things break if I do that?

0 Likes

#2

Seems like that’d work. You’ll notice tab is bound to a lot of things—if you just replace the binding that inserts a tab character (keeping the order of bindings the same) seems like it should work fine.

0 Likes