     ;; Tabnine for AI completion
     (customize-set-variable 'lsp-completion-provider :none)
     (use-package company-tabnine
-      :hook (python-mode . chri/tabnine-on))
+      :hook ((python-mode . chri/tabnine-on)
+             (c-mode . chri/tabnine-on)))
     (defun chri/tabnine-off ()
       "turn off TabNine for this buffer"
       (interactive)

               (python-mode . eglot-ensure)
               (js2-mode . eglot-ensure)
               (go-mode . eglot-ensure)
               (obc-c-mode . eglot-ensure))
        :config
        (when chri/enable-tabnine
          (add-to-list 'eglot-stay-out-of 'company))

 '(mouse-yank-at-point t)
 '(org-startup-folded nil)
 '(package-selected-packages
   '(counsel-gtags gtags js2-mode eglot company-tabnine rainbow-mode rainbow-delimiters rg ag dts-mode ucs-utils font-utils persistent-soft unicode-fonts ivy-yasnippet yasnippet-snippets lsp coq js-mode notmuch coq-mode go-playground javascript-mode diminish yaml-imenu ws-butler which-key-posframe wanderlust use-package typescript-mode tree-mode toml-mode toml smex simpleclip rustic rust-mode proof-general projectile-speedbar menu-bar+ markdown-preview-mode magit-gh-pulls lsp-ui lsp-pyright lsp-jedi lsp-ivy lsp-dart kotlin-mode jsonrpc jedi ivy-rich ipython-shell-send iedit ido-completing-read+ haskell-mode go-projectile go-autocomplete ghub+ forge flymake flycheck-yamllint flycheck-pyflakes flycheck-posframe flycheck-ocaml flycheck-mypy flycheck-kotlin flx-ido find-file-in-project elpy elpher ein dash-functional counsel company-posframe company-lua company-lsp company-coq ccls cargo browse-kill-ring+ bpftrace-mode bazel async android-mode))
 '(projectile-tags-command "make_TAGS \"%s\" %s")
 '(rustic-display-spinner nil)
 '(rustic-format-trigger 'on-save)
 '(safe-local-variable-values
   '((projectile-project-compilation-cmd . "make LLVM=1 CC=\"ccache clang\" -j4 && make LLVM=1 bzImage CC=\"ccache clang\" -j4")
     (projectile-project-compilation-cmd . "make CC=\"ccache gcc\" -j4 && make bzImage CC=\"ccache gcc\" -j4")))
 '(save-place t nil (saveplace))
 '(scroll-bar-mode 'right)
 '(set-mark-command-repeat-pop t)
