            (c-set-offset 'brace-list-open '+)   ; all "opens" should be indented by the c-indent-level
            (c-set-offset 'case-label '+)        ; indent case labels by c-indent-level, too
 
-           (setq ac-sources
-                 '(ac-source-clang
-                   ac-source-c-headers
-                   ac-source-yasnippet
-                   ac-source-words-in-same-mode-buffers
-                   )))
+           ;; C++11 support on mac
+           (when (and is-mac (eq major-mode 'c++-mode))
+             (setq flycheck-clang-language-standard "c++11"
+                   flycheck-clang-standard-library "libc++"
+                   flycheck-c/c++-clang-executable "clang++")))
 
-;; Implement some C++11 Support until cc-mode is updated
+;; C++11 syntax support (until cc-mode is updated)
 (require 'font-lock)
 (defun --copy-face (new-face face)
   "Define NEW-FACE from existing FACE."

              c-default-style "linux"
              c-tab-always-indent nil)

(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(add-hook! 'c-mode-common-hook
           (use-package auto-complete-clang)
           (use-package auto-complete-c-headers)

           (c-toggle-electric-state -1)
           (c-toggle-auto-newline -1)

           (defmap c-mode-map (kbd "DEL") nil)

           (c-set-offset 'substatement-open '0) ; brackets should be at same indentation level as the statements they open

         ("\\.vert\\'" . glsl-mode)
         ("\\.frag\\'" . glsl-mode)
         ("\\.geom\\'" . glsl-mode)))
