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 /lisp/init-php.el | |
parent | 7087eedf4eebf13c3b831670292d6364cc12670f (diff) | |
download | emacs-personal-5f494a38d3216b337228c79da524b7b85d6a3926.tar.lz emacs-personal-5f494a38d3216b337228c79da524b7b85d6a3926.tar.xz emacs-personal-5f494a38d3216b337228c79da524b7b85d6a3926.zip |
only php
Diffstat (limited to 'lisp/init-php.el')
-rw-r--r-- | lisp/init-php.el | 29 |
1 files changed, 29 insertions, 0 deletions
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 |