summaryrefslogtreecommitdiffstats
path: root/Emacs.org
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-08-12 22:42:11 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2022-08-12 22:42:11 +0200
commit1003f123ba0e812fead63afa3684889ab4b34dfb (patch)
treeb6c7e76473e599b638ca6130664552401649100c /Emacs.org
parentb0d9d158b76c307f3947b61d6fe77c79d8423705 (diff)
downloaddotfiles-1003f123ba0e812fead63afa3684889ab4b34dfb.tar.gz
dotfiles-1003f123ba0e812fead63afa3684889ab4b34dfb.zip
Add company mode
Diffstat (limited to 'Emacs.org')
-rw-r--r--Emacs.org21
1 files changed, 21 insertions, 0 deletions
diff --git a/Emacs.org b/Emacs.org
index fa2dbdf..cf1b4ad 100644
--- a/Emacs.org
+++ b/Emacs.org
@@ -40,6 +40,7 @@
40 - [[#lsp][Lsp]] 40 - [[#lsp][Lsp]]
41 - [[#python][Python]] 41 - [[#python][Python]]
42 - [[#dap-mode][Dap mode]] 42 - [[#dap-mode][Dap mode]]
43 - [[#company][Company]]
43 - [[#projectile][Projectile]] 44 - [[#projectile][Projectile]]
44 - [[#keybinds][Keybinds]] 45 - [[#keybinds][Keybinds]]
45 - [[#magit][Magit]] 46 - [[#magit][Magit]]
@@ -477,6 +478,26 @@
477 478
478#+end_src 479#+end_src
479 480
481** Company
482
483#+begin_src emacs-lisp
484
485 (use-package company
486 :after lsp-mode
487 :hook (lsp-mode . company-mode)
488 :bind (:map company-active-map
489 ("<tab>" . company-complete-selection))
490 (:map lsp-mode-map
491 ("<tab>" . company-indent-or-complete-common))
492 :custom
493 (company-minimum-prefix-length 1)
494 (company-idle-delay 0.0))
495
496 (use-package company-box
497 :hook (company-mode . company-box-mode))
498
499#+end_src
500
480** Projectile 501** Projectile
481 502
482#+begin_src emacs-lisp 503#+begin_src emacs-lisp