From 3cb3110e90a8f9f71bd49e6bbd2781f2e9a50285 Mon Sep 17 00:00:00 2001 From: Daniel Semyonov Date: Tue, 29 Jun 2021 18:31:33 +0300 Subject: [PATCH] Cleanup 'thing-at-point' integration Don't use 'with-eval-after-load'. --- elpher.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elpher.el b/elpher.el index ec7edcb..662e451 100644 --- a/elpher.el +++ b/elpher.el @@ -1783,7 +1783,8 @@ If ADDRESS is already bookmarked, update the label only." ;; Avoid byte compilation warnings. (eval-when-compile (declare-function org-link-store-props "ol") - (declare-function org-link-set-parameters "ol")) + (declare-function org-link-set-parameters "ol") + (defvar thing-at-point-uri-schemes)) (defun elpher-org-link-store () "Store link to an `elpher' page in `org'." @@ -1820,8 +1821,7 @@ If ADDRESS is already bookmarked, update the label only." '("^\\(gopher\\|finger\\|gemini\\)://" . elpher-browse-url-elpher)) ;; Register "gemini://" as a URI scheme so `browse-url' does the right thing -(with-eval-after-load 'thingatpt - (add-to-list 'thing-at-point-uri-schemes "gemini://")) +(add-to-list 'thing-at-point-uri-schemes "gemini://") ;;; Interactive procedures ;; -- 2.20.1