move osx env to init.el
fix template