2014-08-07 23:35:16 -04:00
|
|
|
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
|
|
|
|
(add-hook 'c-mode-common-hook
|
2014-08-09 19:25:06 -04:00
|
|
|
(lambda()
|
|
|
|
(use-package auto-complete-clang :ensure t)
|
|
|
|
(use-package auto-complete-c-headers :ensure t)
|
2014-08-07 23:35:16 -04:00
|
|
|
|
2014-08-09 19:25:06 -04:00
|
|
|
(setq ac-sources
|
|
|
|
'(ac-source-clang
|
|
|
|
ac-source-c-headers
|
|
|
|
ac-source-yasnippet
|
|
|
|
ac-source-words-in-same-mode-buffers
|
|
|
|
))))
|
2014-08-07 19:50:33 -04:00
|
|
|
|
2014-08-09 19:25:06 -04:00
|
|
|
(use-package glsl-mode :ensure t
|
|
|
|
:mode (("\\.glsl\\'" . glsl-mode)
|
|
|
|
("\\.vert\\'" . glsl-mode)
|
|
|
|
("\\.frag\\'" . glsl-mode)
|
|
|
|
("\\.geom\\'" . glsl-mode)))
|
2014-08-07 19:50:33 -04:00
|
|
|
|
|
|
|
;;
|
|
|
|
(provide 'mod-cpp)
|