Emacs configuration and extension