From a61d32cdfeb781de7e2e4f3d595c0afd17eb3bfa Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 14 Jul 2023 12:47:31 +0200 Subject: [PATCH] dev: Change the C styling settings Use two spaces as indention and the linux coding style. Extend the fill column to 100. --- .emacs.d/config/dev.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 778c84c..bf174d4 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -46,3 +46,11 @@ (interactive (list (read-directory-name "Find files in directory: " nil "" t))) (let ((find-program "git-find")) (find-dired dir ""))) + +;; c +(setq c-default-style "linux" + c-basic-offset 2) + +(add-hook 'c-mode-hook + (lambda () + (set-fill-column 100)))