Enable company mode in PHP mode

This commit is contained in:
Tom Willemse 2016-10-14 00:58:15 +02:00
parent d49cf1d7ff
commit 4813d15f0e

View file

@ -27,3 +27,19 @@ disables it.
(add-hook 'php-mode-hook 'oni:set-require-final-newline)
#+END_SRC
Enable company mode for completion.
#+BEGIN_SRC emacs-lisp
(add-hook 'php-mode-hook 'company-mode)
#+END_SRC
Load a PHP-specific completion back-end when company mode is loaded.
#+BEGIN_SRC emacs-lisp
(eval-when-compile (require 'company))
(with-eval-after-load 'company
(require 'company-php)
(add-to-list 'company-backends 'company-ac-php-backend))
#+END_SRC