From 29454d926d2ebc268b1837710395baa0a4fd9989 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 30 Sep 2019 08:00:50 +0200 Subject: [PATCH] Don't indent in namespaces. --- init.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 2b7ef5e..3272236 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-09-30T04:59:37+00:00> +;; Time-stamp: <2019-09-30T06:00:30+00:00> ;;; Commentary: ;; Requires at least Emacs 24.3. @@ -434,9 +434,15 @@ With argument, do this that many times." (use-package cc-mode :ensure nil ; Included in Emacs. :config - (c-add-style "tastytea" - '("bsd" - (c-basic-offset . 4))) + (c-add-style + "tastytea" + '("bsd" + (c-basic-offset . 4) + (c-offsets-alist . ((innamespace . [0]))))) ; Don't indent in namespaces. + (c-add-style + "tastytea-legacy" ; For old code. + '("bsd" + (c-basic-offset . 4))) :custom (c-default-style "tastytea"))