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)

View file

@ -57,7 +57,7 @@ symbols, which are converted to strings, and suffixed with \".el\"."
:group 'config-snippets
:type '(repeat directory))
(setq config-snippets '(base backups calendar dev functions gpg matrix org pass wl))
(setq config-snippets '(base backups c calendar dev functions gpg matrix org pass wl))
(message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path)
(dolist (snippet config-snippets)

View file

@ -2,6 +2,7 @@
!/.emacs.d/config/backups.el
!/.emacs.d/config/base.el
!/.emacs.d/config/calendar.el
!/.emacs.d/config/c.el
!/.emacs.d/config/dev.el
!/.emacs.d/config/functions.el
!/.emacs.d/config/gpg.el