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