From 1b652a2ec828757aa63805fb5fc4bb2cc4b0b4c7 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 17 Apr 2021 23:02:38 -0500 Subject: Switch out company for corfu Corfu is like, alpha software, but it already seems pretty useful for what I need. --- init.el | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/init.el b/init.el index 731e363..4134eb8 100644 --- a/init.el +++ b/init.el @@ -747,18 +747,17 @@ if ripgrep is installed, otherwise `consult-grep'." (apheleia--get-formatter-command))) (indent-region (point-min) (point-max))))) -(setup (:straight company) - (:hook-into prog-mode) - (:hook company-tng-mode) - - (if (eq acdw/system :home) - (setq company-idle-delay 0.25) - (setq company-idle-delay nil)) - - (:global "M-/" company-complete) - (:with-map company-active-map - (:bind "C-d" company-show-doc-buffer - "M-." company-show-location))) +(setup (:straight (corfu + :host github + :repo "minad/corfu")) + (:option completion-cycle-threshold 3 + tab-always-indent 'complete + corfu-cycle t) + (:with-map corfu-map + (:bind "TAB" corfu-next + "S-TAB" corfu-previous)) + (:hook-into prog-mode + eshell-mode)) ;;; Lisps (defvar lispy-modes '(emacs-lisp-mode -- cgit 1.4.1-21-gabe81