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

@ -1,5 +1,5 @@
;;; checkers/spell/autoload/+spell-fu.el -*- lexical-binding: t; -*-
;;;###if (not (modulep! +flyspell))
;;;###if (modulep! -flyspell)
(defun +spell--correct (replace poss word orig-pt start end)
(cond ((eq replace 'ignore)

View File

@ -70,7 +70,7 @@
;;
;;; Implementations
(eval-if! (not (modulep! +flyspell))
(eval-if! (modulep! -flyspell)
(use-package! spell-fu
:when (executable-find "aspell")

View File

@ -1,6 +1,6 @@
;;; checkers/spell/doctor.el -*- lexical-binding: t; -*-
(when (or (not (modulep! +flyspell))
(when (or (modulep! -flyspell)
(modulep! +aspell))
(unless (executable-find "aspell")
(warn! "Couldn't find aspell executable; spell checker will not work")))

View File

@ -1,7 +1,7 @@
;; -*- no-byte-compile: t; -*-
;;; checkers/spell/packages.el
(if (not (modulep! +flyspell))
(if (modulep! -flyspell)
(package! spell-fu
:recipe (:host github :repo "emacsmirror/spell-fu")
:pin "e4031935803c66eca2f076dce72b0a6a770d026c")