From 632d38062ef96333abc5529180d5d3a7841fe114 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Wed, 27 Feb 2019 16:59:59 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/1493036 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Tim Wawrzynczak Reviewed-by: Raul E Rangel --- .dir-locals.el | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .dir-locals.el 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))))