1
0
Fork 0

Fixed: corfu autocompletes on RET instead of TAB

Browse Source
This commit is contained in:
rhjr 2026-07-05 07:59:35 -04:00
parent 73ddaea19e
commit 0056400c01

View File

@ -73,7 +73,10 @@
create-lockfiles nil create-lockfiles nil
make-backup-files nil make-backup-files nil
auto-save-default nil) auto-save-default nil
tab-width 2
indent-tabs-mode nil)
;;; rhjr/standard-packages ;;; rhjr/standard-packages
(use-package dired-x (use-package dired-x
@ -113,6 +116,7 @@
(set-fringe-mode '(0 . 0)) (set-fringe-mode '(0 . 0))
(pixel-scroll-precision-mode) (pixel-scroll-precision-mode)
(global-display-line-numbers-mode 1) (global-display-line-numbers-mode 1)
(delete-selection-mode 1)
;;; rhjr/packages ;;; rhjr/packages
(use-package magit (use-package magit
@ -127,12 +131,8 @@
(corfu-cycle t) (corfu-cycle t)
(corfu-preview-current nil) (corfu-preview-current nil)
:bind :config
(:map corfu-map (keymap-unset corfu-map "RET")
("TAB" . corfu-next)
([tab] . corfu-next)
("S-TAB" . corfu-previous)
([backtab] . corfu-previous))
:init :init
(global-corfu-mode) (global-corfu-mode)
@ -143,8 +143,8 @@
("C-x 4 b" . consult-buffer-other-window) ("C-x 4 b" . consult-buffer-other-window)
("C-x 5 b" . consult-buffer-other-frame) ("C-x 5 b" . consult-buffer-other-frame)
;; M-s bindings in `search-map' ;; M-s bindings in `search-map'
("C-f" . consult-find) ("C-x f" . consult-find)
("C-s" . consult-ripgrep)) ("C-x s" . consult-ripgrep))
:config :config
(setq consult-find-args (setq consult-find-args
@ -344,8 +344,7 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages nil))
'(cape consult corfu corfu-candidate-overlay gruber-darker-theme highlight-parentheses magit orderless vertico)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.