[emacs] Enable version control for git and hg only