Reputation: 6512
I use emacs/ orgmode and helm-google.
When I open a page it opens it in google chrome. I would like it to open in eww. (ideally even have some way to have different hotkeys to open pages in either eww/chrome)
I tried to set var: browse-url-generic to 'eww', but no success.
I tried
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "eww")
(as per How to make emacs org-mode open links to sites in Google Chrome?) but no success.
I asked the author of helm-google about this in this post, awaiting a reply?
Upvotes: 4
Views: 2085
Reputation: 126
Follow code snippet can open "http://" "https://" with eww
only in org-mode
, instead of change default browser function to eww
.
(eval-after-load 'ol
'(dolist (scheme '("http" "https"))
(org-link-set-parameters
scheme :follow (lambda (url arg) (eww (concat scheme ":" url) arg)))))
Upvotes: 0
Reputation: 4516
(setq browse-url-browser-function 'eww-browse-url)
should be what you're looking after.
Upvotes: 6
Reputation: 4235
You should be able to just set browse-url-browser-function to 'eww.
My suggestion would be to use the customize group and select eww (it is one of the choices in the menu for the browse-url-function. If that works, you can then look at it in the custom file to see how to set it manually. Once you have that, then you could try writing your own function which allows you to select the browser you want.
Upvotes: 3