diff options
author | Yuchen Pei <id@ypei.org> | 2025-01-17 09:48:03 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2025-01-17 09:48:03 +1100 |
commit | ddb5b07e1e43c7b44877bae9d786dbb80ca95311 (patch) | |
tree | 9b1dc12efc8913dcacd8ff62f1624fc02507a1a1 /emacs/.emacs.d/lisp/my/my-web.el | |
parent | e7d07c825a29621cd1be7d787d5e1565bc3d3513 (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.el | 3 |
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 |