diff options
-rw-r--r-- | consult.org | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/consult.org b/consult.org index 5929e61..0a2878b 100644 --- a/consult.org +++ b/consult.org @@ -256,6 +256,14 @@ (cons 'url url))))) (add-to-list 'embark-target-finders #'jao-embark-targets--w3m-anchor) + + (defun jao-embark-url (url) + "Browse URL, externally if we're already in emacs-w3m" + (if (derived-mode-p 'w3m-mode) + (jao-browse-with-external-browser url) + (browse-url url))) + + (define-key embark-url-map (kbd "RET") #'jao-embark-url) (define-key embark-url-map (kbd "f") #'browse-url-firefox) #+end_src *** video url targets |