aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules
diff options
context:
space:
mode:
authorbard <[email protected]>2024-03-08 07:21:34 -0500
committerbard <[email protected]>2024-03-08 07:21:34 -0500
commit15e5fceedecd4017003c4b36392d9f749e08090b (patch)
tree925aaceec238f56f0a20ad64ea66429b2f2d75d8 /bard-emacs-modules
parent57c158c01c365fd453be8ddf4cda97fa4bad316c (diff)
simple eww customizations
Diffstat (limited to 'bard-emacs-modules')
-rw-r--r--bard-emacs-modules/bard-emacs-web.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/bard-emacs-modules/bard-emacs-web.el b/bard-emacs-modules/bard-emacs-web.el
new file mode 100644
index 0000000..e095a2d
--- /dev/null
+++ b/bard-emacs-modules/bard-emacs-web.el
@@ -0,0 +1,19 @@
+(setq browse-url-browser-function 'eww-browse-url)
+(setq browse-url-secondary-browser-function 'browse-url-default-browser)
+
+(setq shr-use-colors nil) ; t is bad for accessibility
+(setq shr-use-fonts nil) ; t is not for me
+(setq shr-max-image-proportion 0.6)
+(setq shr-image-animate nil) ; No GIFs, thank you!
+(setq shr-width fill-column) ; check `prot-eww-readable'
+(setq shr-max-width fill-column)
+(setq shr-discard-aria-hidden t)
+(setq shr-cookie-policy nil)
+
+;; eww
+(setq eww-search-prefix "https://duckduckgo.com/html/?q=")
+(setq eww-history-limit 150)
+(setq eww-use-external-browser-for-content-type
+ "\\`\\(video/\\|audio\\)")
+
+(global-set-key (kbd "C-c w") 'eww)