From 66cdc752aaa972efc6327aabe20ac813092d1b32 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 10 Nov 2025 23:50:18 -0500 Subject: set xdg default browser --- .config/emacs/modules/bd--browse.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el index 3fdd2c9..25de2b1 100644 --- a/.config/emacs/modules/bd--browse.el +++ b/.config/emacs/modules/bd--browse.el @@ -13,7 +13,7 @@ ('eww (eww url)) ('tor (start-process "torbrowser" nil "torbrowser" "--new-window" url)) ('chromium (start-process "chromium" nil "chromium" "--new-window" url)) - (_ (start-process "browser" nil "librewolf" "--new-window" url)))) + (_ (start-process "browser" nil (getenv "BROWSER") "--new-window" url)))) (defun bd/selector-bookmarks () "Selector source for all bookmarks." @@ -69,6 +69,7 @@ (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 "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) (bd/search-candidate "Archwiki" "https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=" 'eww) @@ -121,8 +122,8 @@ :hook ;; eww-mode by default sets this as local var to eww-browse-url ((eww-mode . - (lambda () - (setq-local browse-url-browser-function #'bd/browse)))) + (lambda () + (setq-local browse-url-browser-function #'bd/browse)))) :config (setopt eww-search-prefix "https://searx.operationnull.com/searxng/search?q=" eww-auto-rename-buffer 'title -- cgit v1.2.3