Commit ad689fbc9dcd

Vincent Demeester <vincent@sbr.pm>
2020-03-02 13:35:56
Set browse-url-generic as browser function
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 6073f8d
Changed files (2)
config/setup-browser.el
@@ -2,11 +2,12 @@
 (use-package shr
   :commands (eww
              eww-browse-url)
-  :custom
-  (shr-use-fonts nil)
-  (shr-use-colors nil)
-  (shr-max-image-proportion 0.2)
-  (shr-width (current-fill-column)))
+  :config
+  (setq shr-use-fonts nil
+        shr-use-colors nil
+        shr-max-image-proportion 0.2
+        shr-width (current-fill-column)
+        browse-url-browser-function 'browse-url-generic))
 
 (use-package shr-tag-pre-highlight
   :after shr
emacs.org
@@ -1684,11 +1684,12 @@
 (use-package shr
   :commands (eww
              eww-browse-url)
-  :custom
-  (shr-use-fonts nil)
-  (shr-use-colors nil)
-  (shr-max-image-proportion 0.2)
-  (shr-width (current-fill-column)))
+  :config
+  (setq shr-use-fonts nil
+        shr-use-colors nil
+        shr-max-image-proportion 0.2
+        shr-width (current-fill-column)
+        browse-url-browser-function 'browse-url-generic))
 
 (use-package shr-tag-pre-highlight
   :after shr