diff options
-rw-r--r-- | lisp/+browse-url.el | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
141 | (define-global-minor-mode +browse-url-transform-url-global-mode | 141 | (define-global-minor-mode +browse-url-transform-url-global-mode |
142 | +browse-url-transform-url-mode +browse-url-transform-url-mode) | 142 | +browse-url-transform-url-mode +browse-url-transform-url-mode) |
143 | 143 | ||
144 | (defun +browse-url-other-window (&rest args) | ||
145 | "Browse URL in the other window." | ||
146 | (let ((browsed (apply #'browse-url args))) | ||
147 | (when (bufferp browsed) | ||
148 | (switch-to-buffer-other-window browsed)))) | ||
149 | |||
144 | (provide '+browse-url) | 150 | (provide '+browse-url) |
145 | ;;; +browse-url.el ends here | 151 | ;;; +browse-url.el ends here |