Add php contrib layer
This commit is contained in:
parent
8b0c0a5c2e
commit
d4283a842a
28
contrib/lang/php/README.md
Normal file
28
contrib/lang/php/README.md
Normal 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
|
BIN
contrib/lang/php/img/php.png
Normal file
BIN
contrib/lang/php/img/php.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
21
contrib/lang/php/packages.el
Normal file
21
contrib/lang/php/packages.el
Normal 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)
|
||||
)
|
||||
)
|
Loading…
Reference in a new issue