 	 ("M-," . counsel-gtags-go-backward))
   )
 
-(use-package octave
-  ;; Used for matlab and octave files
-  :mode ("\\.m\\'" . octave-mode)
-  )
-
-(use-package wotd
-  ;; Gives you word of the day
-  :defer t
-  :bind ("C-c C-w" . wotd-select)
-  )
-
-(use-package dashboard
-  :diminish page-break-lines-mode
-  :config
-  (dashboard-setup-startup-hook)
-  (setq dashboard-banner-logo-title "Lets start hacking !")
-  (setq dashboard-items '((projects . 5)
-			  (recents  . 3)
-			  (agenda . 3)))
-  )
-
-(use-package origami
-  :defer t
-  :init
-  (add-hook 'prog-mode-hook 'origami-mode)
-  :bind
-  ("C-c C-f" . origami-toggle-node )
-  )
+;; C++ Config -----------------------------------------------------------------
 
 ;; Misc Bindings
 (global-set-key (kbd "M-z") 'shell-command)

  (setq compile-command (concat "ledger -f " (file-name-nondirectory buffer-file-name) " bal --cleared" ))
  )

(use-package modern-cpp-font-lock
  :init
  (add-hook 'c++-mode-hook #'modern-c++-font-lock-mode)

  (set-fill-column 100) ;; Equal with clang format
  (setq-default c-basic-offset 4) ;; Eqaul with clang format
  )

(use-package company-c-headers
  :defer t
  :init
  (add-to-list 'company-backends 'company-c-headers)
  )

;; Install LLVM - http://releases.llvm.org/download.html
;; Install MingW - http://mingw-w64.org/doku.php - 32 bit version
(use-package clang-format
  :defer t
  :init
  (global-set-key (kbd "C-c r") 'clang-format-region)
  (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)
  )


(use-package cmake-mode
  :defer t
