COMPANY: Bind c-tab to complete

This commit is contained in:
Laurens Miers 2022-02-17 14:27:10 +01:00
parent f44990e0b0
commit b0b2702b38

View file

@ -995,6 +995,9 @@ Deprecated in favour of rtags
(use-package company (use-package company
:ensure t :ensure t
:init (global-company-mode) :init (global-company-mode)
:bind (
("<C-tab>" . company-complete)
)
) )
#+END_SRC #+END_SRC
@ -1036,10 +1039,8 @@ https://github.com/Andersbakken/rtags
(use-package company-rtags (use-package company-rtags
:ensure t :ensure t
:commands company-rtags
:config :config
(push 'company-rtags company-backends) (push 'company-rtags company-backends)
(define-key c-mode-base-map (kbd "<C-tab>") (function company-complete)) ;; not working yet
:hook :hook
((c-mode c++-mode objc-mode) . (lambda () (require 'company))) ((c-mode c++-mode objc-mode) . (lambda () (require 'company)))
) )