c, dev: Extract C config into separate file
Move configuration regarding C into its own file.
This commit is contained in:
parent
2ae2500575
commit
941b156a55
4 changed files with 8 additions and 9 deletions
6
.emacs.d/config/c.el
Normal file
6
.emacs.d/config/c.el
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
(setq c-default-style "linux"
|
||||||
|
c-basic-offset 2)
|
||||||
|
|
||||||
|
(add-hook 'c-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(set-fill-column 100)))
|
|
@ -55,13 +55,5 @@
|
||||||
(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)))
|
|
||||||
|
|
||||||
;; enable flyspell checks for comments in code
|
;; enable flyspell checks for comments in code
|
||||||
(add-hook 'prog-mode-hook #'flyspell-prog-mode)
|
(add-hook 'prog-mode-hook #'flyspell-prog-mode)
|
||||||
|
|
|
@ -57,7 +57,7 @@ symbols, which are converted to strings, and suffixed with \".el\"."
|
||||||
:group 'config-snippets
|
:group 'config-snippets
|
||||||
:type '(repeat directory))
|
: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)
|
(message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path)
|
||||||
(dolist (snippet config-snippets)
|
(dolist (snippet config-snippets)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
!/.emacs.d/config/backups.el
|
!/.emacs.d/config/backups.el
|
||||||
!/.emacs.d/config/base.el
|
!/.emacs.d/config/base.el
|
||||||
!/.emacs.d/config/calendar.el
|
!/.emacs.d/config/calendar.el
|
||||||
|
!/.emacs.d/config/c.el
|
||||||
!/.emacs.d/config/dev.el
|
!/.emacs.d/config/dev.el
|
||||||
!/.emacs.d/config/functions.el
|
!/.emacs.d/config/functions.el
|
||||||
!/.emacs.d/config/gpg.el
|
!/.emacs.d/config/gpg.el
|
||||||
|
|
Loading…
Reference in a new issue