0

In Emacs (27.1) on the orgmode when I RET on HTTP link, Emacs doesn't open it on any browser (chromium, firefox, ...).

I've set these variable in my spacemacs user config:

  (setq browse-url-browser-function 'browse-url-default-browser
        browse-url-generic-program "chromium-browser")

  (setq org-return-follows-link t)

I tried this function, but it didn't work for me:

(browse-url "http://www.google.com")

How can I debug Emacs to diagnose the problem?

4
  • 1
    Did you check the Messages buffer? – Ali Shirvani Mar 4 at 11:55
  • Yep, there is no corresponding message there. – Milad Khajavi Mar 4 at 11:59
  • You can look at the sources for browse-url, You can also instrument browse-url with edebug and step through it. IIUC, this is independent of Org mode, so the org-mode tag should be deleted - correct? – NickD Mar 4 at 13:58
  • 1
    Is the program chromium-browser in your PATH? (Dunno whether that's necessary; just a thought.) – Drew Mar 5 at 2:26
0

Finally, I found that the call-process doesn't work due to the corrupted .spacemacs.env file. after deletion of this file, it works properly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.