From: Daniel Semyonov Date: Tue, 29 Jun 2021 15:31:33 +0000 (+0300) Subject: Cleanup 'thing-at-point' integration X-Git-Tag: v3.0.0~22^2~19 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=3cb3110e90a8f9f71bd49e6bbd2781f2e9a50285;p=elpher.git Cleanup 'thing-at-point' integration Don't use 'with-eval-after-load'. --- 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 ;;