Set cut_dir properly, and add mode line for Emacs.