lang/php: prioritize phpctags in PATH

And fail more gracefully if phpctags isn't installed
This commit is contained in:
Henrik Lissner 2018-07-27 01:31:53 +02:00
parent 5aef36951d
commit f0f2c92b8d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 18 additions and 2 deletions

View file

@ -13,3 +13,12 @@ ignore the cache."
(require 'json)
(json-read-file package-file))))
(puthash project-root data +php-composer-conf))))))
;;;###autoload
(defun +php|init-ac-php-core-eldoc ()
"Initialize eldoc support for `php-mode' with `ac-php-core'. Fails gracefully
if phpctags isn't installed."
(require 'company-php)
(if (file-exists-p ac-php-ctags-executable)
(ac-php-core-eldoc-setup)
(message "phpctags is missing; eldoc support is disabled")))