Don't indent in namespaces.

This commit is contained in:
tastytea 2019-09-30 08:00:50 +02:00
parent f1d0c916e6
commit 29454d926d

14
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; 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: ;;; Commentary:
;; Requires at least Emacs 24.3. ;; Requires at least Emacs 24.3.
@ -434,9 +434,15 @@ With argument, do this that many times."
(use-package cc-mode (use-package cc-mode
:ensure nil ; Included in Emacs. :ensure nil ; Included in Emacs.
:config :config
(c-add-style "tastytea" (c-add-style
'("bsd" "tastytea"
(c-basic-offset . 4))) '("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 :custom
(c-default-style "tastytea")) (c-default-style "tastytea"))