Add editorconfig layer
This commit is contained in:
parent
cce8d5382d
commit
bb3f3d9da5
32
contrib/editorconfig/README.md
Normal file
32
contrib/editorconfig/README.md
Normal 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))
|
||||
```
|
BIN
contrib/editorconfig/img/editorconfig.png
Normal file
BIN
contrib/editorconfig/img/editorconfig.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
6
contrib/editorconfig/packages.el
Normal file
6
contrib/editorconfig/packages.el
Normal 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))))
|
Loading…
Reference in a new issue