From afd3fce36d5861de0d2441e337060eeb6d47105e Mon Sep 17 00:00:00 2001 From: Mark Deric Date: Tue, 13 Jun 2023 06:11:46 -0700 Subject: [PATCH] Fix .dir-locals.el-example so that it works Fixed for syntax differences required between .emacs and .dir-locals.el. The previous version of this file may have worked in .emacs context; I did not check that. But it certainly did _not_ work in .dir-locals.el context; the new file does work. Signed-off-by: Mark Deric --- .dir-locals.el-example | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.dir-locals.el-example b/.dir-locals.el-example index c98e88b4..e4f6367e 100644 --- a/.dir-locals.el-example +++ b/.dir-locals.el-example @@ -1,10 +1,10 @@ ; Adapted from https://www.emacswiki.org/emacs/IndentingC +; fixed for syntax differences required between .emacs and .dir-locals.el -((c++-mode - (c-file-style . "stroustrup") - (innamespace . -) - (inline-open . 0) - (inher-cont . c-lineup-multi-inher) - (arglist-cont-nonempty . c-lineup-arglist) - (template-args-cont . +)) -) +((c++-mode . ((c-file-style . "stroustrup") + (c-file-offsets + (innamespace . -) + (inline-open . 0) + (inher-cont . c-lineup-multi-inher) + (arglist-cont-nonempty . c-lineup-arglist) + (template-args-cont . +)))))