2022-03-30 01:21:13 +02:00
|
|
|
;;; lang-php.el --- Configuración para el lenguaje PHP
|
|
|
|
|
|
|
|
;; Author: kj <webmaster@outcontrol.net>
|
|
|
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(use-package company-php :defer t)
|
|
|
|
(use-package ac-php :defer t)
|
|
|
|
|
|
|
|
(use-package php-mode
|
|
|
|
:defer t
|
2022-05-04 05:24:33 +02:00
|
|
|
:bind ("C-c d b" . php-doc-block)
|
2022-03-30 01:21:13 +02:00
|
|
|
:config
|
|
|
|
(add-hook 'php-mode-hook #'(lambda()
|
|
|
|
(php-enable-default-coding-style)
|
|
|
|
(company-mode t) ; habilita company mode
|
|
|
|
(ac-php-core-eldoc-setup) ; habilita soporte para ELDoc
|
|
|
|
(add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company
|
|
|
|
))
|
|
|
|
)
|
|
|
|
|
|
|
|
(use-package php-doc-block
|
|
|
|
:load-path (lambda() (concat private-dir "/packages/php-doc-block"))
|
|
|
|
)
|
|
|
|
|
|
|
|
(provide 'lang-php)
|
|
|
|
;;; lang-php.el ends here
|