   :commands (c-mode c++-mode objc-mode java-mode)
   :mode ("\\.mm\\'" . objc-mode)
   :init
-  (setq-default c-basic-offset tab-width
-                c-backspace-function #'delete-backward-char
-                c-default-style "doom")
-
   ;; The plusses in c++-mode can be annoying to search for ivy/helm (which reads
   ;; queries as regexps), so we add these for convenience.
   (defalias 'cpp-mode 'c++-mode)

  (add-hook! '(c-mode-hook c++-mode-hook) #'+cc-fontify-constants-h)

  ;; Custom style, based off of linux
  (c-add-style
   "doom" '((c-basic-offset . tab-width)
            (c-comment-only-line-offset . 0)
            (c-hanging-braces-alist (brace-list-open)
                                    (brace-entry-open)
                                    (substatement-open after)

             ;; another level
             (access-label . -)
             (inclass +cc-c++-lineup-inclass +)
             (label . 0))))

  (setf (alist-get 'other c-default-style) "doom"))


(use-package! modern-cpp-font-lock
