mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(editor): add config for vertico + orderless as a alternative to selectrum
I still prefer selectrum for the time being, but I've written the config, might as well commit it for potential future use or experimentation.
This commit is contained in:
20
modules/editor/siren-orderless.el
Normal file
20
modules/editor/siren-orderless.el
Normal file
@@ -0,0 +1,20 @@
|
||||
;;; siren-orderless.el --- jimeh's Emacs Siren: orderless configuration.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Basic configuration for orderless.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(use-package orderless
|
||||
:custom
|
||||
(completion-styles '(orderless))
|
||||
(completion-category-overrides '((file (styles . (partial-completion)))))
|
||||
(orderless-matching-styles '(orderless-literal
|
||||
orderless-prefixes
|
||||
orderless-regexp
|
||||
orderless-initialism
|
||||
orderless-flex)))
|
||||
|
||||
(provide 'siren-orderless)
|
||||
;;; siren-orderless.el ends here
|
||||
27
modules/editor/siren-vertico.el
Normal file
27
modules/editor/siren-vertico.el
Normal file
@@ -0,0 +1,27 @@
|
||||
;;; siren-vertico.el --- jimeh's Emacs Siren: vertico configuration.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Basic configuration for vertico.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'siren-orderless)
|
||||
|
||||
(use-package vertico
|
||||
:custom
|
||||
(enable-recursive-minibuffers t)
|
||||
(resize-mini-windows nil)
|
||||
(vertico-count 12)
|
||||
(vertico-cycle t)
|
||||
|
||||
:init
|
||||
(defun siren-crm-indicator (args)
|
||||
(cons (concat "[CRM] " (car args)) (cdr args)))
|
||||
|
||||
:config
|
||||
(vertico-mode +1)
|
||||
(advice-add #'completing-read-multiple :filter-args #'siren-crm-indicator))
|
||||
|
||||
(provide 'siren-vertico)
|
||||
;;; siren-vertico.el ends here
|
||||
@@ -6,10 +6,6 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'siren-prescient)
|
||||
(require 'siren-projectile)
|
||||
(require 'siren-selectrum)
|
||||
|
||||
(use-package consult
|
||||
:defer t
|
||||
:bind
|
||||
|
||||
Reference in New Issue
Block a user