Enable company mode in PHP mode
This commit is contained in:
parent
d49cf1d7ff
commit
4813d15f0e
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue