php mode and phpactor

This commit is contained in:
Yisroel Baum 2025-09-07 15:32:31 +03:00
parent 800e8338ba
commit f3853e5254
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

13
init.el
View file

@ -48,6 +48,19 @@
:init
(vertico-mode))
(use-package
php-mode
:init (setq phpactor-executable (executable-find "phpactor"))
:hook ((php-mode . eglot-ensure)
(php-mode . (lambda ()
(setq-local phpactor-executable
(executable-find "phpactor")))))
:mode ("\\.php\\'"))
(use-package phpactor
:after php-mode)
(use-package smartparens
:config (require 'smartparens-config)
:init (smartparens-global-mode))