Add c-mode settings for the files in the src directory. Additionally, make indent-tabs-mode global such that it also applies to the .dir-locals.el file itself. Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxx> --- .dir-locals.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index 46961929fac9..994103c63d39 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,4 +1,6 @@ ((sh-mode . ((sh-basic-offset . 8) (sh-indentation . 8) - (fill-column . 80) - (indent-tabs-mode . t)))) + (fill-column . 80))) + (c-mode . ((c-basic-offset . 8) + (c-label-minimum-indentation . 0))) + (nil . ((indent-tabs-mode . t)))) -- 2.18.0