Emacs and company autocompletion. Add a header directory globally

Viewed 1402

I'm trying to add a header files path to company-mode but I can't do it. I did it with flycheck as follow:

(defun include-paths ()
   (setq flycheck-clang-include-path (list (expand-file-name "../include"))))

(add-hook 'c++-mode-hook 'include-paths)

Is there a similar way to do it with company-mode?

1 Answers
Related