refine emacs related