summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-08-09 23:14:25 -0500
committerCase Duckworth2021-08-09 23:14:25 -0500
commit2d3e66de187e1b145f8b980d7ccb4d2b38de2628 (patch)
tree5ec885f5dd9fa8a837644258e4fa8cea88eceba6
parentConfigure minibuffer (diff)
downloademacs-2d3e66de187e1b145f8b980d7ccb4d2b38de2628.tar.gz
emacs-2d3e66de187e1b145f8b980d7ccb4d2b38de2628.zip
Add vertico extensions
-rw-r--r--init.el22
1 files changed, 20 insertions, 2 deletions
diff --git a/init.el b/init.el index 4b493eb..a564ac7 100644 --- a/init.el +++ b/init.el
@@ -1316,13 +1316,31 @@ if ripgrep is installed, otherwise `consult-grep'."
1316 1316
1317(setup (:straight (vertico 1317(setup (:straight (vertico
1318 :host github 1318 :host github
1319 :repo "minad/vertico")) 1319 :repo "minad/vertico"
1320 :files ("*" "extensions/*"
1321 (:exclude ".git"))))
1322
1320 (:option resize-mini-windows 'grow-only 1323 (:option resize-mini-windows 'grow-only
1321 vertico-count-format nil 1324 vertico-count-format nil
1322 vertico-cycle t) 1325 vertico-cycle t)
1326
1323 (if (boundp 'comp-deferred-compilation-deny-list) 1327 (if (boundp 'comp-deferred-compilation-deny-list)
1324 (add-to-list 'comp-deferred-compilation-deny-list "vertico")) 1328 (add-to-list 'comp-deferred-compilation-deny-list "vertico"))
1325 (vertico-mode +1)) 1329
1330 (vertico-mode +1)
1331
1332 ;; Extensions!
1333 (:also-load vertico-mouse)
1334 (vertico-mouse-mode +1)
1335
1336 ;; Workarounds!
1337 (when (version< org-version "9.5")
1338 (defun disable-selection ()
1339 (when (eq minibuffer-completion-table #'org-tags-completion-function)
1340 (setq-local vertico-map minibuffer-local-completion-map
1341 completion-cycle-threshold nil
1342 completion-styles '(basic))))
1343 (advice-add #'vertico--setup :before #'disable-selection)))
1326 1344
1327(setup (:straight vuiet) 1345(setup (:straight vuiet)
1328 (:needs "youtube-dl" 1346 (:needs "youtube-dl"