Created
August 16, 2018 12:54
-
-
Save Fabs/e169ded517e137a58110e161a985b50e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(require 'thingatpt) | |
(defun browse-ghc-extension () | |
(interactive) | |
(let* ((extension (downcase (thing-at-point 'symbol))) | |
(url (concat "https://limperg.de/ghc-extensions#" extension))) | |
(browse-url url) | |
(with-current-buffer (url-retrieve-synchronously url) | |
(let* ((html (libxml-parse-html-region (point-min) (point-max)))) | |
(message "%s" html) | |
(kill-buffer))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment