;; -*- lexical-binding: t; -*- (when (gx/maybe-require-package 'corfu) (autoload 'corfu-mode "corfu") (when (display-graphic-p) (add-hook 'ledger-mode-hook #'corfu-mode) (add-hook 'prog-mode-hook #'corfu-mode))) (setq corfu-cycle t corfu-auto t corfu-quit-no-match t corfu-preselect-first nil) (with-eval-after-load 'corfu (define-key corfu-map (kbd "TAB") 'corfu-next) (define-key corfu-map (kbd "") 'corfu-next) (define-key corfu-map (kbd "S-TAB") 'corfu-previous) (define-key corfu-map (kbd "") 'corfu-previous)) (provide 'init-corfu)