summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-11-27 12:33:13 +0000
committerjao <jao@gnu.org>2021-11-27 12:34:10 +0000
commit28f9d947d900c85ab8bf1932339c59469fed0207 (patch)
tree695ca216d79c60d5642f401aeea07d876a3542af /completion.org
parent9eced0df3948a4d700d58a05d672ab6c8d1d7f41 (diff)
downloadelibs-28f9d947d900c85ab8bf1932339c59469fed0207.tar.gz
elibs-28f9d947d900c85ab8bf1932339c59469fed0207.tar.bz2
completion tweaks
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org18
1 files changed, 14 insertions, 4 deletions
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-<return>" . newline)))
+ :bind (:map corfu-map
+ ("C-<return>" . 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