Created
April 6, 2016 22:41
-
-
Save cjp/553733a644ef53b8aca7caabcf640a37 to your computer and use it in GitHub Desktop.
Display URL requested by `browse-url` function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun browse-url-display (url &optional _new-window) | |
;; new-window ignored | |
"Open a help window displaying the requested URL." | |
(interactive (browse-url-interactive-arg "URL: ")) | |
(with-help-window "*url*" | |
(princ (list url)))) | |
(setq browse-url-browser-function 'browse-url-display) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment