add auto complete mode for emacs