summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-eww.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-04-06 15:54:19 +0100
committerjao <jao@gnu.org>2024-04-06 15:54:36 +0100
commit4444616076105252c827f8313edd4d4c1caf29f9 (patch)
tree6b30c57e357e0cc699ae9ef1322883ac080dc0a4 /custom/jao-custom-eww.el
parentb48311310f3cc62d192d286c9b2dfdc26450230f (diff)
downloadelibs-4444616076105252c827f8313edd4d4c1caf29f9.tar.gz
elibs-4444616076105252c827f8313edd4d4c1caf29f9.tar.bz2
auto-readable is now provided by eww
Diffstat (limited to 'custom/jao-custom-eww.el')
-rw-r--r--custom/jao-custom-eww.el16
1 files changed, 5 insertions, 11 deletions
diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el
index 441ab6a..81dcd6e 100644
--- a/custom/jao-custom-eww.el
+++ b/custom/jao-custom-eww.el
@@ -173,7 +173,11 @@
(eww-download-directory jao-sink-dir)
(eww-header-line-format " %u")
(eww-form-checkbox-selected-symbol "☒")
- (eww-buffer-name-length 180))
+ (eww-buffer-name-length 180)
+ (eww-readable-urls '("guardian\\.co\\.uk"
+ "theguardian\\.com"
+ "eldiario\\.es"
+ "theconversation")))
:config
(with-eval-after-load "org" (require 'ol-eww nil t))
@@ -207,16 +211,6 @@
("C-c C-w" . jao-eww-close)
("M-i" . eww-toggle-images))))
-;;; auto-readable
-(defvar jao-eww-auto-readable-urls
- (regexp-opt '("guardian.co.uk" "theguardian.com" "github.com" "eldiario.es")))
-
-(defun jao-eww-autoread ()
- (when (string-match-p jao-eww-auto-readable-urls (or (eww-current-url)))
- (eww-readable)))
-
-(add-hook 'eww-after-render-hook #'jao-eww-autoread)
-
;;; fixes for shr image rendering
(require 'shr)