emacs-personal/lisp/init-php.el
Jesús 9ba7912df7
Added support for PHP + HTML combined with the help of mmm-mode
Note: remember that working with PHP and combined HTML isn't a best practice
2018-11-06 20:54:20 -05:00

17 lines
590 B
EmacsLisp

(use-package ac-php)
(use-package php-mode
:config
(add-hook 'mmm-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)