summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--eww.el
diff options
context:
space:
mode:
authorbd <bdunahu@colostate.edu>2024-01-10 19:44:21 -0700
committerbd <bdunahu@colostate.edu>2024-01-10 19:44:21 -0700
commit1ced565816120bfcc351daf9fc3a4e851162e3b7 (patch)
tree93e9c23660cd07f4dba861f334b23c03d322f48c /.config/emacs/modules/bd--eww.el
parentda5922a476cebdbbf338f0192165dbbbcd3f7b6f (diff)
Initial commit of new repository structure
Diffstat (limited to '.config/emacs/modules/bd--eww.el')
-rw-r--r--.config/emacs/modules/bd--eww.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/emacs/modules/bd--eww.el b/.config/emacs/modules/bd--eww.el
new file mode 100644
index 0000000..7bde428
--- /dev/null
+++ b/.config/emacs/modules/bd--eww.el
@@ -0,0 +1,25 @@
+;; -*- lexical-binding: t; -*-
+
+
+;; do not use an external browser
+(setopt browse-url-browser-function 'eww-browse-url
+ shr-use-fonts nil
+ shr-cookie-policy nil
+ shr-max-width 85
+ ;; send only user agent
+ url-privacy-level '(email os emacs lastloc cookies)
+ eww-search-prefix "https://searx.be/search?q="
+ eww-auto-rename-buffer 'title
+ eww-use-browse-url (regexp-opt '("mailto:"
+ "youtube.com"
+ "youtu.be"
+ "yewtu.be"
+ "vid.puffyan.us"))
+ browse-url-handlers
+ `((,(regexp-opt'("youtube.com" "youtu.be" "yewtu.be" "vid.puffyan.us")) .
+ (lambda (url &rest _)
+ (message "Ludu %s" url)
+ (start-process-shell-command "rip-video" nil (concat "rip-video " url))))))
+
+
+(provide 'bd--eww)