diff options
-rw-r--r-- | eww.org | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -12,7 +12,9 @@ (string= ,url (url-encode-url (eww-current-url))))) (jao-eww-session--list-buffers)))) - (if bf (switch-to-buffer bf) (eww url 4)))) + (cond (bf (switch-to-buffer bf)) + ((string-match-p url "^file://") (eww-open-file url)) + (t (eww url 4))))) (setq jao-browse-url-function #'jao-eww-browse-url) (setq browse-url-browser-function jao-browse-url-function) |