From 2d8b3bee0d4888ed089b53215fbebe21d793242c Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 21 May 2021 18:44:25 +0100 Subject: missing eww bits --- eww.org | 6 ++++++ init.org | 2 ++ 2 files changed, 8 insertions(+) diff --git a/eww.org b/eww.org index 3801215..676e4df 100644 --- a/eww.org +++ b/eww.org @@ -32,6 +32,12 @@ #+end_src * Opening URLs #+begin_src emacs-lisp + (defun jao-eww-copy-link () + (interactive) + (when-let (lnk (or (car (eww-links-at-point)) (eww-current-url))) + (message "%s" lnk) + (kill-new lnk))) + (defun jao-eww-browse (arg) (interactive "P" eww-mode) (setq eww-prompt-history diff --git a/init.org b/init.org index 7e8ce4c..5612d64 100644 --- a/init.org +++ b/init.org @@ -1555,6 +1555,8 @@ (,jao--see-exts . jao--see) ("^file://?.+\\.html?$" . ,jao-browse-url-function) ("^file://?" . jao--find-file-other-window) + ("^https?://git\\(hub\\|lab\\)\\.com\\..*" . + ,jao-browse-url-external-function) ("^https?://.*\\.slack\\..*" . ,jao-browse-url-external-function) ("^https?://.*\\.gotomeeting\\.com\\.*" . browse-url-chrome) ("^https?://meet\\.google\\.com\\.*" . ,jao-browse-url-external-function) -- cgit v1.2.3