set linum-mode and number-mode
add function for distinguish environment.