This commit is contained in:
Jesús 2019-01-08 15:03:41 -05:00
parent 7087eedf4e
commit 5f494a38d3
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
4 changed files with 31 additions and 2 deletions

View File

@ -11,7 +11,7 @@
'(ecb-options-version "2.50")
'(package-selected-packages
(quote
(dokuwiki-mode web-mode rainbow-mode yaml-mode scss-mode sass-mode less-css-mode pkgbuild-mode pip-requirements jedi markdown-mode crystal-mode nginx-mode emmet-mode whitespace-cleanup-mode flycheck neotree all-the-icons highlight-indent-guides anzu sml-modeline smart-mode-line-powerline-theme smart-mode-line ecb diminish undo-tree nlinum sublime-themes use-package))))
(company-php php-refactor-mode php-mode dokuwiki-mode web-mode rainbow-mode yaml-mode scss-mode sass-mode less-css-mode pkgbuild-mode pip-requirements jedi markdown-mode crystal-mode nginx-mode emmet-mode whitespace-cleanup-mode flycheck neotree all-the-icons highlight-indent-guides anzu sml-modeline smart-mode-line-powerline-theme smart-mode-line ecb diminish undo-tree nlinum sublime-themes use-package))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -50,6 +50,7 @@
(require 'init-crystal)
(require 'init-html)
(require 'init-markdown)
(require 'init-php)
(require 'init-python)
(require 'init-pkgbuild)
(require 'init-less)

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の設定