From 11f293f417e61c1ea9eb970e1b53ec1c0df6b714 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 18 Oct 2025 01:48:11 -0400 Subject: Add duckduckgo as source --- .config/emacs/modules/bd--browse.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '.config/emacs/modules') diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el index 57ace2e..44cb7b9 100644 --- a/.config/emacs/modules/bd--browse.el +++ b/.config/emacs/modules/bd--browse.el @@ -66,10 +66,11 @@ (bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 1) (bd/search-candidate "Invidious" "https://inv.nadeko.net/search?q=" 0) (bd/search-candidate "Urban Dictionary" "https://www.urbandictionary.com/define.php?term=" 1) - (bd/search-candidate "Archive of Our Own" "https://archiveofourown.org/works/search?work_search%5Bquery%5D=" 0) + (bd/search-candidate "Archive of Our Own" "https://archiveofourown.org/works/search?work_search%5Bquery%5D=" 0) (bd/search-candidate "Archwiki" "https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=" 0) (bd/selector-rip-video) + (bd/search-candidate "DuckDuckGo" "https://duckduckgo.com/html/?q=" 1) (bd/search-candidate "Web" "" 1)))) (defun bd/browse-dispatcher () @@ -113,13 +114,13 @@ :bind (:map eww-mode-map ("i" . eww-toggle-images) - ("o" . (lambda () (interactive) (rip-html (eww-current-url))))) + ("o" . (lambda () (interactive) (rip-html (eww-current-url))))) :config (setopt eww-search-prefix "https://searx.operationnull.com/searxng/search?q=" eww-auto-rename-buffer 'title eww-browse-url-new-window-is-tab nil - browse-url-browser-function 'bd/browse - browse-url-secondary-browser-function #'browse-url-default-browser + browse-url-browser-function 'bd/browse + browse-url-secondary-browser-function #'browse-url-default-browser eww-header-line-format nil eww-use-browse-url (regexp-opt '("mailto:" "youtube.com" -- cgit v1.2.3