How to adapt my work style to the employer's standard in Emacs
I write some set up code in ~/.custom.el. It will detect which machine and what directory I'm working on. Then I hook the set up code when major mode (js2-mode, web-mode, for example) loaded.
In my ~/.emacs,
(if (file-readable-p (expand-file-name "~/.custom.el")) (load-file (expand-file-name "~/.custom.el")))
Content of my ~/.custom.el: