From 595ac9e696c370608cec883f599ef5002755fc1d Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 11 Apr 2024 20:19:11 +0200 Subject: [PATCH] Disable org-lint checker for obsolete percentage encoding I do not mind having such links, and sometimes I have to put up with them, so let's spare `org-lint` of the trouble reporting them. --- init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.el b/init.el index cf55290..ae7d5fe 100644 --- a/init.el +++ b/init.el @@ -786,6 +786,17 @@ :autoload (org-cycle-hide-drawers) :init (setq org-cycle-include-plain-lists 'integrate)) +(use-package org-lint + :autoload (org-lint-checker-name) + :config (progn + ;; Yes, this is ugly, but I would like to get rid of checking for + ;; obsolete percentage encoding in URLs without loosing the other + ;; checkers. + (setq org-lint--checkers (cl-remove-if #'(lambda (c) + (eq (org-lint-checker-name c) + 'percent-encoding-link-escape)) + org-lint--checkers)))) + ;; Drag-and-Drop images into org-mode buffer (use-package org-download :commands (org-download-yank