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
|
@ -73,14 +73,15 @@
|
|||
:init
|
||||
(add-to-list '+php--company-backends 'company-ac-php-backend nil #'eq)
|
||||
(add-hook 'php-mode-hook #'+php|init-ac-php-core-eldoc)
|
||||
:config
|
||||
(setq ac-php-tags-path (concat doom-cache-dir "ac-php/"))
|
||||
;; prioritize phpctags in PATH
|
||||
(when (file-in-directory-p ac-php-ctags-executable ac-php-root-directory)
|
||||
(setq ac-php-ctags-executable
|
||||
(or (executable-find "phpctags")
|
||||
(if (file-exists-p ac-php-ctags-executable)
|
||||
ac-php-ctags-executable)))))
|
||||
;; loaded by `company-php'
|
||||
(after! ac-php-core
|
||||
(when (equal ac-php-ctags-executable
|
||||
(concat ac-php-root-directory "phpctags"))
|
||||
;; prioritize phpctags in PATH
|
||||
(setq ac-php-ctags-executable
|
||||
(or (executable-find "phpctags")
|
||||
ac-php-ctags-executable)))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue