From bfe91060fdd5b3a1672d4fb15ce723642ef5c6c4 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Thu, 19 Jun 2025 12:19:46 +0300 Subject: [PATCH] Fix my C style offsets not being applied Because they need to be in c-offsets-alist section of the style --- emacs/init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index cee824d..7ce00ff 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -166,10 +166,10 @@ (c-add-style "my-style" '("k&r" (c-basic-offset . 4) - (case-label . 0) - (inlambda . 0) - (inline-open . 0) - (innamespace . 4))) + (c-offsets-alist . ((case-label . 0) + (inlambda . 0) + (inline-open . 0) + (innamespace . 4))))) (add-hook 'c-mode-common-hook (lambda ()