             "?" #'embark-keymap-help))
 
 (use-package company
-  :general
+  :preface
+  (defun user/setup-company-backends ()
+    (csetq company-backends (remove 'company-capf company-backends))
+    (push 'company-capf company-backends))
+  :general
+  ("C-c C-." #'company-complete)
   (:keymaps 'company-active-map
             "ESC" #'company-abort
             "<tab>" #'company-complete-selection

(use-package lsp-mode
  :commands (lsp lsp-mode)

  :preface
  (defun user/setup-lsp-completion ()
    (setq-local company-backends (remove 'company-capf company-backends))
    (push 'company-capf company-backends))

  :ghook
  ('c-mode-common-hook #'lsp t)
  ('python-mode-hook #'lsp t)

  (company-dabbrev-downcase nil)
  (company-dabbrev-ignore-case t)
  (company-idle-delay 0)
  (company-echo-delay 0)
  (company-minimum-prefix-length 2)
  ;; (company-require-match nil)
  (company-selection-wrap-around t)
