summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-02-06 22:16:07 -0600
committerCase Duckworth2022-02-06 22:16:07 -0600
commited8cce06cf88ec3374067a49af63b18b864a6d2a (patch)
treee0868def4aea044ee4bd75b2eb3fa9a3b565a63e
parentSort alias file ... ? (diff)
downloademacs-ed8cce06cf88ec3374067a49af63b18b864a6d2a.tar.gz
emacs-ed8cce06cf88ec3374067a49af63b18b864a6d2a.zip
Add +browse-url-other-window
Though I'm not sure if it works very well...
-rw-r--r--lisp/+browse-url.el6
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