diff options
-rw-r--r-- | attic/elisp/misc.el | 6 | ||||
-rw-r--r-- | custom/jao-custom-eww.el | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el index d8c2610..2213646 100644 --- a/attic/elisp/misc.el +++ b/attic/elisp/misc.el @@ -1075,3 +1075,9 @@ It should be the title of the web page as returned by `rdrview'" (if eww-rdrview-mode (eww-rdrview-mode -1) (eww-rdrview-mode 1)) (eww-reload)) + +(defun jao-eww-readable (rdrview) + (interactive "P" eww-mode) + (if rdrview + (eww-rdrview-toggle-and-reload) + (eww-readable))) diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el index cdd5c8d..93a2c92 100644 --- a/custom/jao-custom-eww.el +++ b/custom/jao-custom-eww.el @@ -195,12 +195,6 @@ (when (not (string-blank-p s)) (format "%s" s)))) (setq eww-auto-rename-buffer #'jao-eww-buffer-name) - (defun jao-eww-readable (rdrview) - (interactive "P" eww-mode) - (if rdrview - (eww-rdrview-toggle-and-reload) - (eww-readable))) - :bind (:map eww-mode-map (("b" . eww-back-url) ("B" . eww-forward-url) ("d" . jao-download) @@ -211,7 +205,7 @@ ("o" . jao-eww-browse) ("O" . jao-eww-browse-new) ("r" . jao-eww-reload) - ("R" . jao-eww-readable) + ("R" . eww-readable) ("s" . eww-search-words) ("S" . jao-eww-browse-new) ("T" . jao-mastodon-toot-url) |