change ns-frame.sh to enable auto active and toggle emacs.