Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
((nil . ((require-final-newline . t)))

(python-mode . ((indent-tabs-mode . nil)
(python-indent-offset . 4)
(flycheck-flake8-args . ("--ignore=E501"))))

(html-mode . ((indent-tabs-mode . t)))
(css-mode . ((indent-tabs-mode . t)))

(yaml-mode . ((indent-tabs-mode . nil)
(yaml-indent-offset . 2)))

(markdown-mode . ((indent-tabs-mode . nil))))
34 changes: 34 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,40 @@ Keep indention and style consistency in mind and double-check your commit diffs
foldmethod=indent tabstop=2 expandtab
```

### Emacs settings
* **General:**
```
(setq require-final-newline t)
```
* **Python:**
```
(add-hook 'python-mode-hook
(lambda ()
(setq indent-tabs-mode nil)
(setq python-indent-offset 4)
(setq flycheck-flake8-args '("--ignore=E501"))))
```
* **HTML/CSS:**
```
(add-hook 'html-mode-hook (lambda () (setq indent-tabs-mode t)))
(add-hook 'css-mode-hook (lambda () (setq indent-tabs-mode t)))
```
* **YAML:**
```
(add-hook 'yaml-mode-hook
(lambda ()
(setq indent-tabs-mode nil)
(setq yaml-indent-offset 2)))
```
* **Markdown:**
```
(add-hook 'markdown-mode-hook
(lambda ()
(setq indent-tabs-mode nil)))
```

**Note**: A `.dir-locals.el` file is included so Emacs uses the correct settings when you open any file in this project.

## Git pull-request

### Contribute
Expand Down
Loading