Created
June 16, 2019 03:27
-
-
Save bradyt/617f05e2f3d07147fc553a81ce4412fc 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
(defun my-read-webpage-in-org-mode (url) | |
(interactive "sEnter a url: ") | |
(let* ((url (car (split-string url "#"))) | |
(fn (expand-file-name | |
(concat (file-name-nondirectory url) ".org") | |
"~/Downloads"))) | |
(shell-command (format "pandoc %s -o %s --columns=70" url fn)) | |
(with-current-buffer (find-file fn) | |
(hl-line-mode) | |
(text-scale-set 3)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment