ec: Add directory local configuration for Emacs

Since ec uses Linux kernel code style, this adds support for a feature
in emacs to use a specific code style in a directory and its
subdiretories. Looks like this technique is used in a few other spots in
chromium code.

BUG=None
BRANCH=none
TEST=Emacs 26.1 recognizes and uses just fine

Change-Id: Ic8007accf6746cb1a4c2ca0050fa06884d598da3
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1493036
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
This commit is contained in:
Jack Rosenthal 2019-02-27 16:59:59 -07:00 committed by chrome-bot
parent 4dd4b3153b
commit 632d38062e
1 changed files with 4 additions and 0 deletions

4
.dir-locals.el Normal file
View File

@ -0,0 +1,4 @@
((c-mode . ((c-file-style . "linux")
(c-basic-offset . 8)
(tab-width . 8)
(indent-tabs-mode . t))))