From f855adf7cbc1d1a8a7684814fecb27ac8d21f7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sun, 20 Jan 2019 20:53:18 +0100 Subject: [PATCH] remove indentation in namespace block in C++ --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 8a08f42..c30c00b 100644 --- a/init.el +++ b/init.el @@ -361,9 +361,16 @@ of the key binding used to execute this command." ;;; and `rtags`) when you open a C/C++ file from a project which uses ;;; [cmake](https://cmake.org) to build. +(defconst my-cc-style + '("k&r" + (c-offsets-alist . ((innamespace . [0]))))) + +(c-add-style "my-cc-mode" my-cc-style) + (setq-default c-basic-offset 8) (setq c-default-style '((java-mode . "java") (awk-mode . "awk") + (c++-mode . "my-cc-mode") (other . "k&r")) company-async-timeout 5 ; completion may be slow rtags-completions-enabled t)