From 39538d29efcbd4fecc31d1ea27f9b7ae4f273318 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 29 Mar 2021 01:06:55 +0100 Subject: lazier w3m loading (if at all) --- lib/eos/jao-afio.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el index ab5fd12..d031e59 100644 --- a/lib/eos/jao-afio.el +++ b/lib/eos/jao-afio.el @@ -82,6 +82,9 @@ (find-file doc))))))) (defvar jao-afio-use-w3m nil) +(declare w3m "w3m") +(declare w3m-alive-p "w3m") +(declare w3m-previous-buffer "w3m") ;;;###autoload (defun jao-afio-open-www () @@ -165,7 +168,7 @@ (interactive "P") (if (jao-afio--check-frame-p) (jao-afio--goto-frame ?w reset) - (when (w3m-alive-p) + (when (and jao-afio-use-w3m (w3m-alive-p)) (pop-to-buffer (w3m-alive-p))))) (defun jao-afio--try-init (&optional f) -- cgit v1.2.3