diff options
author | Jesús <heckyel@hyperbola.info> | 2019-01-08 15:03:41 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-01-08 15:03:41 -0500 |
commit | 5f494a38d3216b337228c79da524b7b85d6a3926 (patch) | |
tree | 01d06c7d247989d252fac1e51c605417437ac9f2 | |
parent | 7087eedf4eebf13c3b831670292d6364cc12670f (diff) | |
download | emacs-personal-5f494a38d3216b337228c79da524b7b85d6a3926.tar.lz emacs-personal-5f494a38d3216b337228c79da524b7b85d6a3926.tar.xz emacs-personal-5f494a38d3216b337228c79da524b7b85d6a3926.zip |
only php
-rw-r--r-- | custom.el | 2 | ||||
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-php.el | 29 | ||||
-rw-r--r-- | lisp/init-web-mode.el | 1 |
4 files changed, 31 insertions, 2 deletions
@@ -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. @@ -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) diff --git a/lisp/init-php.el b/lisp/init-php.el new file mode 100644 index 0000000..b81e5b8 --- /dev/null +++ b/lisp/init-php.el @@ -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 diff --git a/lisp/init-web-mode.el b/lisp/init-web-mode.el index a5dc122..720e7ec 100644 --- a/lisp/init-web-mode.el +++ b/lisp/init-web-mode.el @@ -4,7 +4,6 @@ ("\\.tpl\\'" . web-mode) ("\\.jsp\\'" . web-mode) ("\\.gsp\\'" . web-mode) - ("\\.php\\'" . web-mode) ("\\.ctp\\'" . web-mode)) :config ;; web-modeの設定 |