c, dev: Extract C config into separate file

Move configuration regarding C into its own file.
This commit is contained in:
finga 2023-11-15 11:23:02 +01:00
parent 2ae2500575
commit 941b156a55
4 changed files with 8 additions and 9 deletions

6
.emacs.d/config/c.el Normal file
View file

@ -0,0 +1,6 @@
(setq c-default-style "linux"
c-basic-offset 2)
(add-hook 'c-mode-hook
(lambda ()
(set-fill-column 100)))

View file

@ -55,13 +55,5 @@
(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)))
;; enable flyspell checks for comments in code
(add-hook 'prog-mode-hook #'flyspell-prog-mode)