move platorm specific calls to .emacs file