diff options
author | bd <bdunahu@operationnull.com> | 2024-10-28 20:10:16 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2024-10-28 20:10:16 -0400 |
commit | 1efe6886049b0143e55ccb77dc7d59966e9dd081 (patch) | |
tree | 3296af39b61b50405058a1248e355318c616b2b2 /.config/emacs/modules/bd--browse.el | |
parent | 05791ee8b63f37513fb1eaf1dcef77de5227994d (diff) |
Configure built-in with use-package
Diffstat (limited to '.config/emacs/modules/bd--browse.el')
-rw-r--r-- | .config/emacs/modules/bd--browse.el | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el index 83bf0a2..3dd15fe 100644 --- a/.config/emacs/modules/bd--browse.el +++ b/.config/emacs/modules/bd--browse.el @@ -53,23 +53,29 @@ icecat, or eww." (list (bd/selector-bookmarks) (bd/selector-search))))) - -;;;; eww -(setopt shr-use-fonts t - shr-cookie-policy nil - shr-max-width 85 - ;; send only user agent - url-privacy-level '(email os emacs lastloc cookies) - eww-search-prefix "https://duckduckgo.com/html/?q=" - eww-auto-rename-buffer 'title - eww-use-browse-url (regexp-opt '("mailto:" - "youtube.com" - "youtu.be")) - browse-url-handlers +(setopt browse-url-handlers `((,(regexp-opt '("youtube.com" "youtu.be")) . (lambda (url &rest _) (message "Ludu %s" url) - (start-process-shell-command "rip-video" nil (concat "rip-video " url)))))) + (start-process-shell-command "rip-video" nil (concat "rip-video " url))))) + url-privacy-level '(email os emacs lastloc cookies)) + +(use-package shr + :custom + (shr-use-fonts t) + (shr-cookie-policy nil) + (shr-max-width 85)) + +(use-package eww + :custom + (eww-search-prefix "https://duckduckgo.com/html/?q=") + (eww-auto-rename-buffer 'title) + (eww-use-browse-url (regexp-opt '("mailto:" + "youtube.com" + "youtu.be")))) + +(use-package apropos + :bind (("C-h a" . selector-apropos))) (provide 'bd--browse) |