From ed8cce06cf88ec3374067a49af63b18b864a6d2a Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 6 Feb 2022 22:16:07 -0600 Subject: Add +browse-url-other-window Though I'm not sure if it works very well... --- lisp/+browse-url.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lisp') diff --git a/lisp/+browse-url.el b/lisp/+browse-url.el index cf0742b..dee1466 100644 --- a/lisp/+browse-url.el +++ b/lisp/+browse-url.el @@ -141,5 +141,11 @@ When using this mode, ensure that the transformed URL is also in (define-global-minor-mode +browse-url-transform-url-global-mode +browse-url-transform-url-mode +browse-url-transform-url-mode) +(defun +browse-url-other-window (&rest args) + "Browse URL in the other window." + (let ((browsed (apply #'browse-url args))) + (when (bufferp browsed) + (switch-to-buffer-other-window browsed)))) + (provide '+browse-url) ;;; +browse-url.el ends here -- cgit 1.4.1-21-gabe81