Commit a19aa1263e2e

Vincent Demeester <vincent@sbr.pm>
2022-03-14 18:44:37
tools/emacs: experimenting with corfu
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent bb55cef
Changed files (2)
tools
users
vincent
tools/emacs/config/config-completion.el
@@ -271,6 +271,29 @@ instead."
   (defun my-company-emoji ()
     (set (make-local-variable 'company-backends) '(company-emoji))
     (company-mode t)))
+;; (use-package corfu
+;;   ;; Optional customizations
+;;   ;; :custom
+;;   ;; (corfu-cycle t)                ;; Enable cycling for `corfu-next/previous'
+;;   ;; (corfu-auto t)                 ;; Enable auto completion
+;;   ;; (corfu-separator ?\s)          ;; Orderless field separator
+;;   ;; (corfu-quit-at-boundary nil)   ;; Never quit at completion boundary
+;;   ;; (corfu-quit-no-match nil)      ;; Never quit, even if there is no match
+;;   ;; (corfu-preview-current nil)    ;; Disable current candidate preview
+;;   ;; (corfu-preselect-first nil)    ;; Disable candidate preselection
+;;   ;; (corfu-on-exact-match nil)     ;; Configure handling of exact matches
+;;   ;; (corfu-echo-documentation nil) ;; Disable documentation in the echo area
+;;   ;; (corfu-scroll-margin 5)        ;; Use scroll margin
+;;
+;;   ;; You may want to enable Corfu only for certain modes.
+;;   ;; :hook ((prog-mode . corfu-mode)
+;;   ;;        (shell-mode . corfu-mode)
+;;   ;;        (eshell-mode . corfu-mode))
+;;
+;;   ;; Recommended: Enable Corfu globally.
+;;   ;; This is recommended since dabbrev can be used globally (M-/).
+;;   :init
+;;   (corfu-global-mode))
 
 (provide 'config-completion)
 ;;; config-completion.el ends here
users/vincent/dev/emacs.nix
@@ -30,6 +30,7 @@ let
     company-go
     consult
     consult-dir
+    # corfu
     dap-mode
     dash
     delight