customize compilation-skip-threshold variable

* skip warnings and info
* remove functions releated to compilation-mode-hook