lang/php: fix stringp error & phpctags path
Also provide a way to silence phpctags warnings on starting php-mode (set ac-php-ctags-executable to nil).
This commit is contained in:
parent
06aa16bbfb
commit
8bbff852f7
2 changed files with 14 additions and 11 deletions
|
@ -18,7 +18,9 @@ ignore the cache."
|
|||
(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")))
|
||||
(require 'ac-php-core)
|
||||
(cond ((not ac-php-ctags-executable))
|
||||
((not (file-exists-p ac-php-ctags-executable))
|
||||
(message "Could not find phpctags executable, eldoc support is disabled")
|
||||
(message "To disable these warnings, set ac-php-ctags-executable to nil"))
|
||||
((ac-php-core-eldoc-setup))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue