From 976c81304dba07d872e3e28c207d182ced92ed8c Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 7 Oct 2024 13:50:46 -0400 Subject: [PATCH] FIX company being silly and slow --- etc/conf.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/conf.org b/etc/conf.org index e32c603..f21b1fe 100644 --- a/etc/conf.org +++ b/etc/conf.org @@ -833,6 +833,8 @@ Company provides a dropdown of completion options. It has many backends which ar :delight "κ" :config (setq company-idle-delay 0 + company-dabbrev-minimum-length 5 + company-dabbrev-other-buffers nil company-minimum-prefix-length 3)) #+END_SRC ** auto formatting @@ -3661,6 +3663,12 @@ Everyone forgets keybindings. When typing a key chord, this will display a windo :init (which-key-mode)) #+END_SRC +** company +#+begin_src emacs-lisp +(define-key company-active-map (kbd "") 'company-complete-selection) +(define-key company-active-map (kbd "") 'company-complete-selection t) +(define-key company-active-map "\r" 'company-complete-selection t) +#+end_src ** hydra Hydra allows commands to be arranged on a set of keybindings like a tree. #+begin_src emacs-lisp