fix home/end on mac for emacs