aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my/my-web.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-17 09:48:03 +1100
committerYuchen Pei <id@ypei.org>2025-01-17 09:48:03 +1100
commitddb5b07e1e43c7b44877bae9d786dbb80ca95311 (patch)
tree9b1dc12efc8913dcacd8ff62f1624fc02507a1a1 /emacs/.emacs.d/lisp/my/my-web.el
parente7d07c825a29621cd1be7d787d5e1565bc3d3513 (diff)
[emacs] Adding buttons to infobox
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-web.el')
-rw-r--r--emacs/.emacs.d/lisp/my/my-web.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-web.el b/emacs/.emacs.d/lisp/my/my-web.el
index 472cab6..6c3cd92 100644
--- a/emacs/.emacs.d/lisp/my/my-web.el
+++ b/emacs/.emacs.d/lisp/my/my-web.el
@@ -161,6 +161,9 @@ Useful for bypassing some paywalls."
(my-url-as-googlebot
(my-fetch-browse url no-overwrite)))
+(require 'hmm)
+(defvar my-url-context-function 'hmm-url "Context function for urls.")
+
(defun my-mastodon-url-p (url)
"Guess if a url is a mastodon post.
e.g. https://hostux.social/@fsf/113709722998924141