aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/init-php.el
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-01-08 15:03:41 -0500
committerJesús <heckyel@hyperbola.info>2019-01-08 15:03:41 -0500
commit5f494a38d3216b337228c79da524b7b85d6a3926 (patch)
tree01d06c7d247989d252fac1e51c605417437ac9f2 /lisp/init-php.el
parent7087eedf4eebf13c3b831670292d6364cc12670f (diff)
downloademacs-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.el29
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