global-company-mode: extract turn-on function