Add php contrib layer

This commit is contained in:
Patrik Storm 2015-02-03 22:22:48 +02:00 committed by syl20bnr
parent 8b0c0a5c2e
commit d4283a842a
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#PHP contribution layer for Spacemacs
![logo](img/php.png)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [PHP contribution layer for Spacemacs](#php-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
<!-- markdown-toc end -->
## Description
This layer adds PHP language support to Spacemacs
Features:
- Edit php files using [php-mode][]
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
(setq-default dotspacemacs-configuration-layers '(php)
"List of contribution to load."
)
```
[php-mode]: https://github.com/ejmr/php-mode

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,21 @@
;;; 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
(defvar php-packages '(php-mode)
"A list of the pacakges to install for php-mode.")
(defun php/init-php-mode ()
(use-package php-mode
:defer t
:mode ("\\.php\\'" . php-mode)
)
)