home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit a19aa1263e2ea715fe8c413f9d7cb807a1a91bc7
parent bb55cef184d6b025632a2dcc48087fa019506879
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 14 Mar 2022 18:44:37 +0100

tools/emacs: experimenting with corfu

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-completion.el | 23+++++++++++++++++++++++
Musers/vincent/dev/emacs.nix | 1+
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-completion.el b/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 diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -30,6 +30,7 @@ let company-go consult consult-dir + # corfu dap-mode dash delight