From 15da107e04035935a28923158243bd0fac484459 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 28 Jan 2018 21:36:42 -0500 Subject: [PATCH] lang/php: basic :lookup support & don't warn about missing phpctags Only adds :documentation support for now. --- modules/lang/php/config.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/lang/php/config.el b/modules/lang/php/config.el index 86d6ba3e2..fd036bdc8 100644 --- a/modules/lang/php/config.el +++ b/modules/lang/php/config.el @@ -13,9 +13,12 @@ :config (add-hook! php-mode #'(ac-php-core-eldoc-setup flycheck-mode)) + ;; Disable HTML compatibility in php-mode. `web-mode' has superior support for + ;; php+html. Use the .phtml (setq php-template-compatibility nil) (set! :repl 'php-mode #'php-boris) + (set! :lookup 'php-mode :documentation #'php-search-documentation) ;; ac-php provides custom autocompletion, php-extras provides autocompletion ;; for built-in libraries @@ -82,10 +85,7 @@ (def-package! company-php :when (featurep! :completion company) :commands (company-ac-php-backend ac-php-remake-tags ac-php-remake-tags-all ac-php-core-eldoc-setup) - :config - (unless (executable-find "phpctags") - (warn "php-mode: phpctags isn't installed, auto-completion will be gimped")) - (setq ac-php-tags-path (concat doom-cache-dir "ac-php/"))) + :config (setq ac-php-tags-path (concat doom-cache-dir "ac-php/"))) ;;