add terminal option for emacs