aboutsummaryrefslogtreecommitdiffstats
path: root/_spacemacs.d
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-07-18 19:17:04 +0800
committerAaron LI <aly@aaronly.me>2018-07-18 19:17:04 +0800
commitf66a64ccbc5a690e1c8e12073b5cd202902c882b (patch)
treee8922ae2b9f4723d7ea56fb163ed4ab3910e87f1 /_spacemacs.d
parentd48c9a78f87b1975328f0459c900b969f6bc0a8f (diff)
downloaddotfiles-f66a64ccbc5a690e1c8e12073b5cd202902c882b.tar.bz2
spacemacs: Use "bsd" style for C/C++ mode
Diffstat (limited to '_spacemacs.d')
-rw-r--r--_spacemacs.d/init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/_spacemacs.d/init.el b/_spacemacs.d/init.el
index 7403837..1c4ea01 100644
--- a/_spacemacs.d/init.el
+++ b/_spacemacs.d/init.el
@@ -484,7 +484,12 @@
web-mode-css-indent-offset 2
web-mode-code-indent-offset 2
)
- ;;
+
+ (add-hook 'c-mode-common-hook
+ (lambda ()
+ (setq indent-tabs-mode t)
+ (c-set-style "bsd")))
+
;; Enable `company-mode' globally
(global-company-mode)
(setq company-idle-delay 0.1)