Move cc indentation config to cc-styles

This commit is contained in:
Adam Goldsmith 2018-05-11 00:53:00 -04:00
parent 165752b325
commit e8db8ccf90

View File

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