Don't indent in namespaces.

This commit is contained in:
tastytea 2019-09-30 08:00:50 +02:00
parent f1d0c916e6
commit 29454d926d
1 changed files with 10 additions and 4 deletions

14
init.el
View File

@ -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"))