   ("C-M-l" . forloop)
   ("C-M-p" . printf-binding)
   :config
+
+  (c-add-style "my-cpp-style"
+	       '("stroustrup"
+		 (c-offsets-alist
+		  (innamespace . 0)
+		  (inline-open . 0)
+		  (arglist-close . 0))))
+
+  (defun my-cpp-mode-hook ()
+    (setq-default helm-make-build-dir "build")
+    (add-to-list 'projectile-other-file-alist
+		 '("C" "H" "hpp" "hxx"))
+    (c-set-style "my-cpp-style"))
+
+  (add-hook 'c++-mode-hook 'my-cpp-mode-hook)
+
   (defun printf-binding (out vars)
     "Binding for printf to make things easier.  OUT is the output string and VARS is the variables to printf."
     (interactive "MOutput:\nMVariables:")

 '(org-agenda-files nil)
 '(package-selected-packages
   (quote
    (hydra cmake-mode emms magit py-autopep8 smartparens rainbow-delimiters yaml-mode wc-mode elpy reverse-theme python-environment popup polymode markdown-mode julia-mode jedi-core jedi ess epc deferred ctable concurrent auto-complete)))
 '(user-full-name "Marc Henry de Frahan"))
(set-face-attribute 'default nil :height 110)


;;
;;================================================================================
(use-package cmake-mode
  :ensure t
  :mode
  ("CMakeLists\\.txt\\'" . cmake-mode)
  ("\\.cmake\\'" . cmake-mode))


;;================================================================================
