diff options
-rw-r--r-- | eww.org | 6 | ||||
-rw-r--r-- | init.org | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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 @@ -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) |