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
|
||||
|
||||
@@ -115,6 +115,21 @@
|
||||
:foreground ,(doom-blend 'magenta 'red 0.6)
|
||||
:weight 'bold))))
|
||||
|
||||
;; vertico
|
||||
`(vertico-current ((t ( :background ,(doom-blend 'violet 'bg 0.2)
|
||||
:foreground ,(doom-blend 'violet 'fg 0.3)
|
||||
:distant-foreground nil :extend t ))))
|
||||
|
||||
;; orderless
|
||||
`(orderless-match-face-0 ((t ( :background nil
|
||||
:foreground ,(doom-lighten 'magenta 0.15) ))))
|
||||
`(orderless-match-face-1 ((t ( :background nil
|
||||
:foreground ,(doom-lighten 'magenta '0.3) ))))
|
||||
`(orderless-match-face-2 ((t ( :background nil
|
||||
:foreground ,(doom-blend 'magenta 'red 0.4) ))))
|
||||
`(orderless-match-face-3 ((t ( :background nil
|
||||
:foreground ,(doom-blend 'magenta 'red 0.7) ))))
|
||||
|
||||
;; helm
|
||||
`(helm-posframe-border ((t ( :background ,(doom-color 'dark-blue) )))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user