From 1003f123ba0e812fead63afa3684889ab4b34dfb Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Fri, 12 Aug 2022 22:42:11 +0200 Subject: Add company mode --- Emacs.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Emacs.org') diff --git a/Emacs.org b/Emacs.org index fa2dbdf..cf1b4ad 100644 --- a/Emacs.org +++ b/Emacs.org @@ -40,6 +40,7 @@ - [[#lsp][Lsp]] - [[#python][Python]] - [[#dap-mode][Dap mode]] + - [[#company][Company]] - [[#projectile][Projectile]] - [[#keybinds][Keybinds]] - [[#magit][Magit]] @@ -477,6 +478,26 @@ #+end_src +** Company + +#+begin_src emacs-lisp + + (use-package company + :after lsp-mode + :hook (lsp-mode . company-mode) + :bind (:map company-active-map + ("" . company-complete-selection)) + (:map lsp-mode-map + ("" . company-indent-or-complete-common)) + :custom + (company-minimum-prefix-length 1) + (company-idle-delay 0.0)) + + (use-package company-box + :hook (company-mode . company-box-mode)) + +#+end_src + ** Projectile #+begin_src emacs-lisp -- cgit v1.2.3