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/layers/+lang/php/packages.el
syl20bnr f45ce1a88e syntax-checking: rename function add-flycheck-hook to enable-flycheck
spacemacs/add-flycheck-hook was not really hooking anything, change the name
to better reflect what it does.
Also changed the push for a add-to-list to avoid duplicates.
2017-03-19 12:40:36 -04:00

65 lines
1.4 KiB
EmacsLisp

;;; packages.el --- PHP Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2017 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
flycheck
ggtags
helm-gtags
php-auto-yasnippets
(php-extras :location (recipe :fetcher github :repo "arnested/php-extras"))
php-mode
phpcbf
phpunit
))
(defun php/post-init-company ()
(spacemacs|add-company-backends :modes php-mode))
(defun php/init-drupal-mode ()
(use-package drupal-mode
:defer t))
(defun php/post-init-eldoc ()
(add-hook 'php-mode-hook 'eldoc-mode))
(defun php/post-init-flycheck ()
(spacemacs/enable-flycheck 'php-mode))
(defun php/post-init-ggtags ()
(add-hook 'php-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))
(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-extras ()
(use-package php-extras
: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))