emacs-personal/lisp/init-php.el
Jesús 457e5c6083
Added web-mode
it's only enabled in the extensions djhtml, html, tpl
see init-web-mode.el
2018-11-02 21:44:58 -05:00

19 lines
655 B
EmacsLisp

(use-package ac-php)
(use-package php-mode
:mode (("\\.php$" . php-mode)
("\\.inc$" . php-mode))
:config
(add-hook 'php-mode-hook
'(lambda ()
(auto-complete-mode t)
(require 'ac-php)
(setq ac-sources '(ac-source-php ))
(setq ac-sources '(ac-source-dictionary ac-source-abbrev ac-source-php ))
(ac-php-core-eldoc-setup ) ;; enable eldoc
(define-key php-mode-map (kbd "C-]") 'ac-php-find-symbol-at-point) ;goto define
(define-key php-mode-map (kbd "C-t") 'ac-php-location-stack-back)))) ;go back
(provide 'init-php)