summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--eww.org6
-rw-r--r--init.org2
2 files changed, 8 insertions, 0 deletions
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)