removed .gitattributes
use define-minor-mode
removed a conditional which had no means
fixed bug that the hook is added globally