Skip to content

Instantly share code, notes, and snippets.

@bradyt
Created June 16, 2019 03:27
Show Gist options
  • Save bradyt/617f05e2f3d07147fc553a81ce4412fc to your computer and use it in GitHub Desktop.
Save bradyt/617f05e2f3d07147fc553a81ce4412fc to your computer and use it in GitHub Desktop.
(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