summaryrefslogtreecommitdiff
path: root/.config/emacs/modules
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-11-19 22:40:14 -0500
committerbd <bdunahu@operationnull.com>2025-11-19 22:40:14 -0500
commiteadfc4d695e9330b75b8ff2f2a5d3b66ae0b2496 (patch)
treea528cf2c859a746295a74b5075170a3f935a1309 /.config/emacs/modules
parent9d8129038efb87290cd2bd26605a24bf5e3b7427 (diff)
eww defaults to readable mode, multiple searxng engine modes
Diffstat (limited to '.config/emacs/modules')
-rw-r--r--.config/emacs/modules/bd--browse.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el
index 25de2b1..7d0b740 100644
--- a/.config/emacs/modules/bd--browse.el
+++ b/.config/emacs/modules/bd--browse.el
@@ -64,10 +64,11 @@
(selector-source-create
"Browser"
:candidates
- (list (bd/search-candidate "SearXNG" "https://searx.operationnull.com/searxng/search?q=" 'eww)
+ (list (bd/search-candidate "SearXNG" "https://searx.operationnull.com/searxng/search?q=" 'wolf)
(bd/search-candidate "DuckDuckGo" "https://duckduckgo.com/html/?q=" 'eww)
- (bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 'wolf)
- (bd/search-candidate "Invidious" "https://inv.nadeko.net/search?q=" 'wolf)
+ (bd/search-candidate "SearXNG-E" "https://searx.operationnull.com/searxng/search?q=" 'eww)
+ (bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 'eww)
+ (bd/search-candidate "Invidious" "https://inv.nadeko.net/search?q=" 'eww)
(bd/search-candidate "Urban Dictionary" "https://www.urbandictionary.com/define.php?term=" 'wolf)
(bd/search-candidate "Nethack Wiki" "https://nethackwiki.com/w/index.php?search=" 'eww)
(bd/search-candidate "Archive of Our Own" "https://archiveofourown.org/works/search?work_search%5Bquery%5D=" 'eww)
@@ -123,7 +124,8 @@
;; eww-mode by default sets this as local var to eww-browse-url
((eww-mode .
(lambda ()
- (setq-local browse-url-browser-function #'bd/browse))))
+ (setq-local browse-url-browser-function #'bd/browse)))
+ (eww-after-render . eww-readable))
:config
(setopt eww-search-prefix "https://searx.operationnull.com/searxng/search?q="
eww-auto-rename-buffer 'title