 (global-set-key (kbd "C-x C-b") 'ibuffer)
 (global-set-key (kbd "C-c k b") 'kill-other-buffers)
 (global-set-key (kbd "<f5>") 'revert-buffer)
-(add-hook 'before-save-hook 'delete-trailing-whitespace)
+;; (add-hook 'before-save-hook 'delete-trailing-whitespace) # TODO Make a function that asks before doing this when commiting
 
 ;; Changes for work macbook
 (if (eq system-type 'darwin)

;; Install ymcd by installing build.py, do "python build.py -h" for help
;; Set Environment variable YMCD to the root folder of the repo
(use-package ycmd
  :if-not (string-equal system-type "windows-nt")
  :init
  (add-hook 'c++-mode-hook 'ycmd-mode)
  (add-hook 'c-mode-hook 'ycmd-mode)

  )

(use-package company-ycmd
  :unless (string-equal system-type "windows-nt")
  :after company
  :init (add-hook 'ycmd-mode-hook 'company-ycmd-setup)
  :config (add-to-list 'company-backends (company-mode/backend-with-yas 'company-ycmd))
  )

(use-package flycheck-ycmd
  :unless (string-equal system-type "windows-nt")
  :after company
  :init (add-hook 'ycmd-mode-hook 'flycheck-ycmd-setup)
  )
