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:
2021-06-20 01:09:31 +01:00
parent d7c90818f1
commit 07b0013c75
4 changed files with 62 additions and 4 deletions

View 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

View 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

View File

@@ -6,10 +6,6 @@
;;; Code:
(require 'siren-prescient)
(require 'siren-projectile)
(require 'siren-selectrum)
(use-package consult
:defer t
:bind

View File

@@ -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) )))))