Add smarter beginning-of-line functionality