4

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)

... except the ESS ones (as, there, Auto-Complete is enabled by default, and in fact much better -- with the quick help, that is documentation appearing in a tooltip)?

user3341592
  • 1,419
  • 1
  • 17
  • 36
  • 1
    Please try and contact the ESS and Company guys so that the ESS support for completion works not only for Auto-Complete but for Company as well. – Stefan Aug 28 '14 at 13:44
  • I have opened a new [issue](https://github.com/emacs-ess/ESS/issues/112) for company integration into ESS. – VitoshKa Aug 30 '14 at 08:34

1 Answers1

3

Customize company-global-modes accordingly:

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

Where ESS-MODE is to be replaced with the value of major-mode (as in C-h v major-mode) in ESS buffers.

Also, note that Company can use completion sources of Auto-Complete, and provides a quick help feature as well (press F1 while the completion popup is shown), so you can also use Company in ESS, if you want.

  • 1
    No, I did not know about Company using AC sources; and, in particular, Company being able to display a quick help as well. Can you give me a pointer to the needed configuration therefore? Best regards. – user3341592 Aug 28 '14 at 15:19