aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-web.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init/ycp-web.el')
-rw-r--r--emacs/.emacs.d/init/ycp-web.el20
1 files changed, 13 insertions, 7 deletions
diff --git a/emacs/.emacs.d/init/ycp-web.el b/emacs/.emacs.d/init/ycp-web.el
index f72c609..6083b35 100644
--- a/emacs/.emacs.d/init/ycp-web.el
+++ b/emacs/.emacs.d/init/ycp-web.el
@@ -260,7 +260,12 @@
"b" #'my-eww-switch-by-title)
(my-keybind global-map "\C-c\C-o" #'my-browse-url-at-point)
(my-setq-from-local my-newscorp-au-amp-nk)
- )
+ (add-to-list 'browse-url-handlers
+ `(my-newscorp-au-url-p
+ . ,(lambda (url &rest _) (my-open-newscorp-au url))))
+ (add-to-list 'browse-url-handlers
+ `("^https?://www.spectator.com.au\\>" .
+ ,(lambda (url &rest _) (my-fetch-browse-as-googlebot url)))) )
(my-package my-gitlab
(:delay 60)
@@ -269,6 +274,13 @@
. ,(lambda (url &rest _) (my-gitlab-project-infobox url))))
)
+(my-package my-github
+ (:delay 60)
+ (add-to-list 'browse-url-handlers
+ `(my-github-project-url-p
+ . ,(lambda (url &rest _) (my-github-project-infobox url))))
+ )
+
(my-package my-ytdl
(:delay 60)
(add-to-list 'browse-url-handlers
@@ -329,12 +341,6 @@
(add-to-list 'browse-url-handlers
`(my-mastodon-url-p
. ,(lambda (url &rest _) (mastorg-open url))))
- (add-to-list 'browse-url-handlers
- `(my-newscorp-au-url-p
- . ,(lambda (url &rest _) (my-open-newscorp-au url))))
- (add-to-list 'browse-url-handlers
- `("^https?://www.spectator.com.au\\>" .
- ,(lambda (url &rest _) (my-fetch-browse-as-googlebot url))))
)
(add-to-list 'load-path (locate-user-emacs-file "lisp/servall/lisp"))