Add editorconfig layer

This commit is contained in:
jupl 2015-04-10 17:08:08 -05:00 committed by syl20bnr
parent cce8d5382d
commit bb3f3d9da5
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,32 @@
# EditorConfig Layer for Spacemacs
![EditorConfig](img/editorconfig.png)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [EditorConfig Layer for Spacemacs](#editorconfig-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [EditorConfig](#editorconfig)
- [Layer](#layer)
<!-- markdown-toc end -->
## Description
This layer provides support for [EditorConfig](http://editorconfig.org/). Syntax highlighting is also provided for `.editorconfig` files.
## Install
### EditorConfig
If you have not installed the EditorConfig C Core already, follow the instructions [here](https://github.com/editorconfig/editorconfig-core-c/blob/master/INSTALL.md).
### Layer
To use this contribution add it to your `~/.spacemacs`
```elisp
(setq-default dotspacemacs-configuration-layers '(editorconfig))
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -0,0 +1,6 @@
(defvar editorconfig-packages '(editorconfig))
(defun editorconfig/init-editorconfig ()
(use-package editorconfig
:defer t
:init (add-to-list 'auto-mode-alist '("\\.editorconfig" . conf-unix-mode))))