2015-06-15 09:06:10 +02:00
|
|
|
;;; module-php.el
|
|
|
|
|
|
|
|
(use-package php-mode
|
|
|
|
:mode "\\.\\(php\\|inc\\)$"
|
|
|
|
:init
|
2015-09-28 05:51:46 -04:00
|
|
|
(add-hook! php-mode 'flycheck-mode)
|
2015-06-25 23:47:03 +02:00
|
|
|
(setq php-template-compatibility nil
|
|
|
|
php-extras-eldoc-functions-file (concat narf-temp-dir "php-extras-eldoc-functions"))
|
2015-06-15 09:06:10 +02:00
|
|
|
:config
|
|
|
|
(require 'php-extras)
|
2015-10-14 03:39:32 -04:00
|
|
|
(define-company-backend! php-mode '(php-extras-company))
|
2015-06-15 09:06:10 +02:00
|
|
|
|
|
|
|
;; TODO Tie into emr
|
|
|
|
(require 'php-refactor-mode)
|
|
|
|
(add-hook! php-mode '(turn-on-eldoc-mode emr-initialize php-refactor-mode)))
|
|
|
|
|
2015-10-09 18:00:39 -04:00
|
|
|
(use-package hack-mode :mode "\\.hh$")
|
|
|
|
|
2015-06-15 09:06:10 +02:00
|
|
|
(provide 'module-php)
|
|
|
|
;;; module-php.el ends here
|