I have this function to open links in firefox with mu4e, which I found somewhere here.
;; open with firefox (defun my-browse-url-firefox-new-tab (url &optional new-window) "Open URL in a new tab in Firefox." (interactive (browse-url-interactive-arg "URL: ")) (let ((cmd (shell-command-to-string (concat "~/src/firefox/mozilla-xremote-client -a any 'openURL(" url ",new-tab)'")))) (unless (string= "" cmd) (message "Starting Firefox...") (start-process (concat "firefox " url) nil "/usr/bin/firefox" url) (message "Starting Firefox...done")))) (define-key mu4e-view-mode-map (kbd "C-c C-o") #'my-browse-url-firefox-new-tab)
My problem is that it only works for "direct" links, not hypertext. If I have a link such as mylink, it displays
URL: http://mylink, not
URL http://www.example.com. Can anyone help?