Add auto-indent point when moving point on new or previous line

Hi Pei,

This PR adds auto-indent when the point moves to new or previous line. It puts the point automatically on the first letter of the file or directory.
I have not finished to work on this PR so I will likely update the commit soon. I open the PR now so you can test it on your side.

Cheers,
syl20bnr