Enable company mode for all buffers, but ESS

Is there a way to enable company mode in all buffers ...

;; enable Company mode in all buffers
(add-hook 'after-init-hook 'global-company-mode)

      

... other than ESS (e.g. Auto-Complete is enabled by default, but actually much better - with quick help, that is, documentation that appears in the tooltip)?

+3


source to share


1 answer


Adjust company-global-modes

accordingly:

(setq company-global-modes '(not ESS-MODE))

      



Where ESS-MODE

should be replaced with a value major-mode

(as in C-h v major-mode

) in the ESS buffers.

Also, note that the company can use Auto-Complete completion sources and provides a quick help function as well (press F1 while the completion popup is displayed), so you can also use the company in ESS if you like.

+2


source







All Articles