update configs for emacs and mg usage