diff options
author | Case Duckworth | 2021-04-17 23:02:38 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-17 23:02:38 -0500 |
commit | 1b652a2ec828757aa63805fb5fc4bb2cc4b0b4c7 (patch) | |
tree | 5e82e6a9cba56ef211b81d393073eb1b78646aba | |
parent | Consolidate home apps (diff) | |
download | emacs-1b652a2ec828757aa63805fb5fc4bb2cc4b0b4c7.tar.gz emacs-1b652a2ec828757aa63805fb5fc4bb2cc4b0b4c7.zip |
Switch out company for corfu
Corfu is like, alpha software, but it already seems pretty useful for what I need.
-rw-r--r-- | init.el | 23 |
1 files 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'." | |||
747 | (apheleia--get-formatter-command))) | 747 | (apheleia--get-formatter-command))) |
748 | (indent-region (point-min) (point-max))))) | 748 | (indent-region (point-min) (point-max))))) |
749 | 749 | ||
750 | (setup (:straight company) | 750 | (setup (:straight (corfu |
751 | (:hook-into prog-mode) | 751 | :host github |
752 | (:hook company-tng-mode) | 752 | :repo "minad/corfu")) |
753 | 753 | (:option completion-cycle-threshold 3 | |
754 | (if (eq acdw/system :home) | 754 | tab-always-indent 'complete |
755 | (setq company-idle-delay 0.25) | 755 | corfu-cycle t) |
756 | (setq company-idle-delay nil)) | 756 | (:with-map corfu-map |
757 | 757 | (:bind "TAB" corfu-next | |
758 | (:global "M-/" company-complete) | 758 | "S-TAB" corfu-previous)) |
759 | (:with-map company-active-map | 759 | (:hook-into prog-mode |
760 | (:bind "C-d" company-show-doc-buffer | 760 | eshell-mode)) |
761 | "M-." company-show-location))) | ||
762 | 761 | ||
763 | ;;; Lisps | 762 | ;;; Lisps |
764 | (defvar lispy-modes '(emacs-lisp-mode | 763 | (defvar lispy-modes '(emacs-lisp-mode |