This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/!lang/php/packages.el
Patrik Storm c31cc125f5 Remove php-extras for now
The php-extras package is not available on elpa. I suggest we remove it
for now, and add it when/if its available on elpa. Closes #1986 #2503
#1314
2015-08-12 21:40:35 -04:00

60 lines
1.5 KiB
EmacsLisp

;;; packages.el --- PHP Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq php-packages '(
company
drupal-mode
eldoc
ggtags
helm-gtags
php-auto-yasnippets
php-mode
phpcbf
phpunit
flycheck
))
(defun php/init-drupal-mode ()
(use-package drupal-mode
:defer t))
(defun php/post-init-eldoc ()
(add-hook 'php-mode-hook 'eldoc-mode)
(when (configuration-layer/package-usedp 'ggtags)
(spacemacs/ggtags-enable-eldoc 'php-mode)))
(defun php/post-init-ggtags ()
(add-hook 'php-mode-hook 'ggtags-mode))
(defun php/post-init-helm-gtags ()
(spacemacs/helm-gtags-define-keys-for-mode 'php-mode))
(defun php/init-php-auto-yasnippets ()
(use-package php-auto-yasnippets
:defer t))
(defun php/init-php-mode ()
(use-package php-mode
:defer t
:mode ("\\.php\\'" . php-mode)))
(defun php/init-phpcbf ()
(use-package phpcbf
:defer t))
(defun php/init-phpunit ()
(use-package phpunit
:defer t))
(when (configuration-layer/layer-usedp 'auto-completion)
(defun php/post-init-company ()
(spacemacs|add-company-hook php-mode)))