refactor: use negated flags

Ref: 7a806521a92c
This commit is contained in:
Henrik Lissner
2024-10-19 14:57:44 -04:00
parent 15904349cf
commit 448bc5cae2
73 changed files with 87 additions and 132 deletions

View File

@@ -265,7 +265,7 @@ The point of this is to avoid Emacs locking up indexing massive file trees."
(replace-regexp-in-string
"[! |]" (lambda (substr)
(cond ((and (string= substr " ")
(not (modulep! +fuzzy)))
(modulep! -fuzzy))
" ")
((string= substr "|")
"\\\\\\\\|")

View File

@@ -366,7 +366,7 @@ workable results ripgrep produces, despite the error."
:when (modulep! +fuzzy)
:unless (modulep! +prescient)
:defer t ; is loaded by ivy
:preface (when (or (not (modulep! +fuzzy))
:preface (when (or (modulep! -fuzzy)
(modulep! +prescient))
(setq ivy--flx-featurep nil))
:init (setq ivy-flx-limit 10000))

View File

@@ -253,8 +253,7 @@ orderless."
(add-to-list 'consult-dir-sources 'consult-dir--source-tramp-local t))
(use-package! consult-flycheck
:when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
:when (modulep! :checkers syntax -flymake)
:after (consult flycheck))
(use-package! consult-yasnippet

View File

@@ -7,8 +7,7 @@
(package! consult :pin "0c3f53916ea0db0c472c0a0c620a85cc1b00caf2")
(package! consult-dir :pin "15891383f34d43acc5bb82bda92239b1f54cf178")
(when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
(when (modulep! :checkers syntax -flymake)
(package! consult-flycheck :pin "3b999ae983900c16c0b5b5c30b7eca640d386a76"))
(package! embark :pin "19a13e344e04bbf861eaa74491b23da52b398672")
(package! embark-consult :pin "19a13e344e04bbf861eaa74491b23da52b398672")