In my Emacs config, I have set Firefox to be the browser to open URLs with,
(setq browse-url-browser-function 'browse-url-firefox)
Now, I have one org-mode file, in which I would like to open URLs with a different program (mpv
, to be precise).
What I'm currently trying is a buffer-local variable, indicated by a mode line
# -*- browse-url-browser-function: 'browse-url-chromium -*-
at the top of my org file. However, whenever I click on an org-mode link pointing to a URL (or, just click on a URL, for that matter), I get an error
Debugger entered--Lisp error: (wrong-type-argument listp quote)
browse-url("https://www.google.com/")
(lambda (path) (browse-url (concat "https:" path)))("//www.google.com/")
org-open-at-point()
org-open-at-mouse((mouse-2 (#<window 1244 on testfile.org> 192 (163 . 95) 82295534 nil 192 (20 . 4) nil (3 . 9) (8 . 19))))
funcall-interactively(org-open-at-mouse (mouse-2 (#<window 1244 on yoga.org> 192 (163 . 95) 82295534 nil 192 (20 . 4) nil (3 . 9) (8 . 19))))
call-interactively(org-open-at-mouse nil nil)
command-execute(org-open-at-mouse)
I would appreciate any pointer towards how I can resolve this.