summaryrefslogtreecommitdiff
path: root/.config/emacs/modules
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-11-01 20:29:57 -0400
committerbd <bdunahu@operationnull.com>2025-11-01 20:29:57 -0400
commit6d3608c33d2228417ab8db1cc05a020017b58238 (patch)
tree13693ad0344e562d7800c3c6d37b708dd83a2f27 /.config/emacs/modules
parent4e80c119a8a062c419540be9b197df175ab21b7c (diff)
Edit search engines to include torbrowser
Diffstat (limited to '.config/emacs/modules')
-rw-r--r--.config/emacs/modules/bd--browse.el13
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