Move cc indentation config to cc-styles
This commit is contained in:
parent
165752b325
commit
e8db8ccf90
@ -1,9 +1,7 @@
|
|||||||
;;; Emacs Config
|
;;; Emacs Config
|
||||||
;;;; indentation
|
;;;; indentation
|
||||||
(setq c-default-style "linux"
|
(setq sgml-basic-offset 4
|
||||||
c-basic-offset 4
|
standard-indent 2)
|
||||||
sgml-basic-offset 4)
|
|
||||||
(c-set-offset `inline-open 0)
|
|
||||||
(setq-default tab-width 4
|
(setq-default tab-width 4
|
||||||
indent-tabs-mode nil)
|
indent-tabs-mode nil)
|
||||||
(add-hook 'sh-mode-hook (lambda () (setq tab-width 4)))
|
(add-hook 'sh-mode-hook (lambda () (setq tab-width 4)))
|
||||||
@ -238,6 +236,12 @@
|
|||||||
(when (eq (framep (selected-frame)) t)
|
(when (eq (framep (selected-frame)) t)
|
||||||
(suspend-tty))))
|
(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)
|
;;;; external packages (required)
|
||||||
(use-package company :ensure
|
(use-package company :ensure
|
||||||
:config
|
:config
|
||||||
|
Loading…
Reference in New Issue
Block a user