   (global-set-key (kbd "C-c u") 'clang-format-buffer)
   :config
   (setq clang-format-style-option "file")
-  ;; Stop aggressive-indent mode to use clang-format
-  (add-to-list 'aggressive-indent-excluded-modes 'c++-mode)
-  (add-to-list 'aggressive-indent-excluded-modes 'c-mode)
-  (add-to-list 'aggressive-indent-excluded-modes 'cmake-project-mode)
+  (fset 'c-indent-region 'clang-format-region)
   )
 
 (use-package cmake-mode

  )

(use-package company-ycmd
  :config
  (company-ycmd-setup)
  )


(use-package company
  :diminish company-mode
  :pin melpa
  :config
  (global-company-mode)
  (setq-local company-dabbrev-downcase nil)
