diff options
Diffstat (limited to '.config/emacs/modules/bd--browse.el')
| -rw-r--r-- | .config/emacs/modules/bd--browse.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el index 3cd8af8..e9c73f9 100644 --- a/.config/emacs/modules/bd--browse.el +++ b/.config/emacs/modules/bd--browse.el @@ -64,6 +64,7 @@ "Browser" :candidates (list (bd/search-candidate "SearXNG" "https://searx.operationnull.com/searxng/search?q=" 2) + (bd/search-candidate "DuckDuckGo" "https://duckduckgo.com/html/?q=" 2) (bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 2) (bd/search-candidate "Invidious" "https://inv.nadeko.net/search?q=" 0) (bd/search-candidate "Urban Dictionary" "https://www.urbandictionary.com/define.php?term=" 2) @@ -71,8 +72,8 @@ (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=" 2) - (bd/search-candidate "Web" "" 2)))) + (bd/search-candidate "Torbrowser" "" 1) + (bd/search-candidate "Librewolf" "" 2)))) (defun bd/browse-dispatcher () "Select and `browse-url' a bookmark or search feature." @@ -100,10 +101,10 @@ ("G" . #'elpher-go)) :config (defun bd/elpher (original url &optional new-window) - "Handle gemini links." - (cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url) - (elpher-go url)) - (t (funcall original url new-window)))) + "Handle gemini links." + (cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url) + (elpher-go url)) + (t (funcall original url new-window)))) (advice-add 'eww :around 'bd/elpher) (setopt elpher-default-url-type "gemini" elpher-connection-timeout 120 |
