From e8db8ccf9010f4dc1ec113b981d0c300993f5af2 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 11 May 2018 00:53:00 -0400 Subject: [PATCH] Move cc indentation config to cc-styles --- .emacs.d/init.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 5afd9d4..770d7ed 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,9 +1,7 @@ ;;; Emacs Config ;;;; indentation -(setq c-default-style "linux" - c-basic-offset 4 - sgml-basic-offset 4) -(c-set-offset `inline-open 0) +(setq sgml-basic-offset 4 + standard-indent 2) (setq-default tab-width 4 indent-tabs-mode nil) (add-hook 'sh-mode-hook (lambda () (setq tab-width 4))) @@ -238,6 +236,12 @@ (when (eq (framep (selected-frame)) t) (suspend-tty)))) +(use-package cc-styles + :config + (setq c-default-style "linux" + c-basic-offset 4) + (c-set-offset `inline-open 0)) + ;;;; external packages (required) (use-package company :ensure :config