diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-02-27 16:59:59 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-01 19:50:22 -0800 |
commit | 632d38062ef96333abc5529180d5d3a7841fe114 (patch) | |
tree | e64e2f72814f7318acbf499781f714499a4eeb74 | |
parent | 4dd4b3153b2f067e5ee9efbcb4852c424be57348 (diff) | |
download | chrome-ec-632d38062ef96333abc5529180d5d3a7841fe114.tar.gz |
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>
-rw-r--r-- | .dir-locals.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000000..8f3931f5bd --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,4 @@ +((c-mode . ((c-file-style . "linux") + (c-basic-offset . 8) + (tab-width . 8) + (indent-tabs-mode . t)))) |