add config method the configure tmp_dir and editor