Merge pull request #792 from marknsikora/c-style
Use K&R as default style
This commit is contained in:
commit
9dd4b916bc
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@
|
||||||
(require 'prelude-programming)
|
(require 'prelude-programming)
|
||||||
|
|
||||||
(defun prelude-c-mode-common-defaults ()
|
(defun prelude-c-mode-common-defaults ()
|
||||||
(setq c-basic-offset 4)
|
(setq c-default-style "k&r"
|
||||||
|
c-basic-offset 4)
|
||||||
(c-set-offset 'substatement-open 0))
|
(c-set-offset 'substatement-open 0))
|
||||||
|
|
||||||
(setq prelude-c-mode-common-hook 'prelude-c-mode-common-defaults)
|
(setq prelude-c-mode-common-hook 'prelude-c-mode-common-defaults)
|
||||||
|
|
Loading…
Reference in a new issue