Suhail Singh <suhailsingh...@gmail.com> writes:

> Ihor Radchenko <yanta...@posteo.net> writes:
>
>> There is currently no such way. Although, it would be nice to have such
>> a feature. Patches welcome!
>
> See attached.

Thanks!

> +;;;###autoload
> +(defun org-lint-remove-checker (name &rest names)
> +  "Remove checker(s) from linter.
> +NAME is the unique check identifier, as a non-nil symbol.  NAMES
> +are additional check identifiers to be removed."
> +  (let ((removelist (cons name names)))
> +    (setq org-lint--checkers
> +          (seq-remove (lambda (c) (memq (org-lint-checker-name c) 
> removelist))
> +                      org-lint--checkers))))

This would work, but it modifies the checker list destructively.

What about introducing some kind of selector variable instead?

Something like

org-lint-default-selector
= '((not misspelled-export-option) :categories export :trust high)

Then, we can make `org-lint' accept ARG to have this
`org-lint-default-selector' format, in addition to currently supported
list of checker names.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to