From 8c56be82235e4112210b7990ca4dd1f761fa1401 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 20 Dec 2024 23:54:47 -0500 Subject: switch back to setopt rather than custom --- .config/emacs/modules/bd--browse.el | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to '.config/emacs/modules/bd--browse.el') diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el index e229e5a..ab61fa8 100644 --- a/.config/emacs/modules/bd--browse.el +++ b/.config/emacs/modules/bd--browse.el @@ -69,10 +69,10 @@ icecat, or eww." (use-package shr :defer t - :custom - (shr-use-fonts t) - (shr-cookie-policy nil) - (shr-max-width 85)) + :config + (setopt shr-use-fonts t + shr-cookie-policy nil + shr-max-width 85)) (use-package elpher :bind @@ -92,25 +92,23 @@ icecat, or eww." (elpher-go url)) (t (funcall original url new-window)))) (advice-add 'eww :around 'bd/elpher) - :custom - (elpher-default-url-type "gemini") - (elpher-connection-timeout 120) - (elpher-gemini-max-fill-width 85) - (elpher-use-emacs-bookmark-menu t)) + (setopt elpher-default-url-type "gemini" + elpher-connection-timeout 120 + elpher-gemini-max-fill-width 85 + elpher-use-emacs-bookmark-menu t)) (use-package eww :hook ((eww-after-render . (lambda () (setq-local fill-column-desired-width 90) (fill-column-mode)))) - :custom - (eww-search-prefix "https://duckduckgo.com/html/?q=") - (eww-auto-rename-buffer 'title) - (eww-use-browse-url (regexp-opt '("mailto:" + :config + (setopt eww-search-prefix "https://duckduckgo.com/html/?q=" + eww-auto-rename-buffer 'title + eww-use-browse-url (regexp-opt '("mailto:" "youtube.com" "youtu.be")))) - (use-package apropos :bind (("C-h a" . selector-apropos))) -- cgit v1.2.3