summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/eww.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 551517b9d64..796eacf274e 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1502,11 +1502,10 @@ If CHARSET is nil then use UTF-8."
(defun eww-toggle-fonts ()
"Toggle whether to use monospaced or font-enabled layouts."
(interactive)
- (message "Fonts are now %s"
- (if (setq shr-use-fonts (not shr-use-fonts))
- "on"
- "off"))
- (eww-reload))
+ (setq shr-use-fonts (not shr-use-fonts))
+ (eww-reload)
+ (message "Proportional fonts are now %s"
+ (if shr-use-fonts "on" "off")))
;;; Bookmarks code