Compare commits

..

2 commits

Author SHA1 Message Date
e19e5b0a4e dev: Enable spell checking for comments in code
To improve the readability add spell checks when writing comments in
code files.
2023-07-14 12:49:34 +02:00
a61d32cdfe dev: Change the C styling settings
Use two spaces as indention and the linux coding style. Extend the
fill column to 100.
2023-07-14 12:47:31 +02:00

View file

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