This commit is contained in:
Jesús
2019-01-08 15:03:41 -05:00
parent 7087eedf4e
commit 5f494a38d3
4 changed files with 31 additions and 2 deletions

29
lisp/init-php.el Normal file
View File

@@ -0,0 +1,29 @@
;;; init-php.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary:
;;
;;; Code:
(use-package php-refactor-mode
:after (php-mode)
:mode ("\\.php\\'" . php-mode)
:config
(add-hook 'php-mode-hook 'php-refactor-mode))
(use-package php-mode
:ensure t)
(use-package company-php
:ensure t
:config
(defun cfg:php-mode-hook ()
(interactive)
(require 'company-php)
(company-mode t)
(add-to-list 'company-backends 'company-ac-php-backend))
(add-hook 'php-mode-hook 'cfg:php-mode-hook))
(add-hook 'php-mode-hook (lambda () (subword-mode 1)))
(provide 'init-php)
;;; init-php.el ends here

View File

@@ -4,7 +4,6 @@
("\\.tpl\\'" . web-mode)
("\\.jsp\\'" . web-mode)
("\\.gsp\\'" . web-mode)
("\\.php\\'" . web-mode)
("\\.ctp\\'" . web-mode))
:config
;; web-modeの設定