Handle dot as electric command

goal:

improve erlang-mode by handling dot sign as electric command, by automatic ending function, indenting current line and moving to next line.