dev: Change the C styling settings

Use two spaces as indention and the linux coding style. Extend the
fill column to 100.
This commit is contained in:
finga 2023-07-14 12:47:31 +02:00
parent 3fad3b9758
commit a61d32cdfe

View file

@ -46,3 +46,11 @@
(interactive (list (read-directory-name "Find files in directory: " nil "" t))) (interactive (list (read-directory-name "Find files in directory: " nil "" t)))
(let ((find-program "git-find")) (let ((find-program "git-find"))
(find-dired dir ""))) (find-dired dir "")))
;; c
(setq c-default-style "linux"
c-basic-offset 2)
(add-hook 'c-mode-hook
(lambda ()
(set-fill-column 100)))