From 28f9d947d900c85ab8bf1932339c59469fed0207 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 27 Nov 2021 12:33:13 +0000 Subject: completion tweaks --- completion.org | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'completion.org') diff --git a/completion.org b/completion.org index a43afbc..e24a0da 100644 --- a/completion.org +++ b/completion.org @@ -6,7 +6,8 @@ #+begin_src emacs-lisp (use-package emacs :init - (setq completion-category-defaults nil + (setq tab-always-indent 'complete + completion-category-defaults nil completion-cycle-threshold nil completions-detailed t completion-show-inline-help nil @@ -40,13 +41,14 @@ (use-package corfu :ensure t :demand t - :init (setq tab-always-indent 'complete - corfu-echo-documentation 0.25 + :init (setq corfu-echo-documentation 0.25 corfu-cycle t corfu-count 15 corfu-quit-no-match t corfu-auto nil corfu-commit-predicate nil + corfu-preview-current nil + corfu-preselect-first nil corfu-min-width 20 corfu-max-width 100) :config @@ -69,7 +71,12 @@ (jao-corfu-no-auto eshell) (add-to-list 'corfu-excluded-modes 'notmuch-message-mode) - :bind (:map corfu-map ("C-" . newline))) + :bind (:map corfu-map + ("C-" . newline) + ("TAB" . corfu-next) + ([tab] . corfu-next) + ("S-TAB" . corfu-previous) + ([backtab] . corfu-previous))) (corfu-global-mode 1) @@ -493,6 +500,9 @@ (add-to-list 'embark-transformer-alist '(url . jao-embark-targets--refine-url)) (add-to-list 'embark-keymap-alist '(video-url . jao-embark-targets-video-url-map)) + (define-key embark-url-map "v" #'jao-embark-targets-vlc) + (define-key embark-url-map "V" #'jao-embark-targets-vlc) + #+end_src *** spotify #+begin_src emacs-lisp -- cgit v1.2.3