 (defvar company-mode/enable-yas t
   "Enable yasnippet for all backends.")
 
+;; TODO: can this be done with pushd to company-backends
 (defun company-mode/backend-with-yas (backend)
   "Add :with company-yasnippet to BACKEND if it is possible."
   (if (or (not company-mode/enable-yas) (and (listp backend) (member 'company-yasnippet backend)))

  :hook (cmake-mode . cmake-font-lock-activate))

(use-package cmake-mode
  :mode ("CMakeLists.txt" "\\.cmake\\'")
  :hook (cmake-mode .
                    (lambda()
                      (progn
                        (setq-local company-idle-delay nil)
                        (setq-local company-dabbrev-code-everywhere t)
                        (setq-local company-backends '(company-cmake company-files))))))

(use-package make-mode
  :config
  (whitespace-toggle-options '(tabs))
  (setq indent-tabs-mode t))

;; Protocol Buffers mode


  (setq-default c-basic-offset 2))

(add-hook 'c-mode-hook



          (lambda ()
            (setq comment-start "//" comment-end   "")))

