Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. (defun my-read-webpage-in-org-mode (url)
  2. (interactive "sEnter a url: ")
  3. (let* ((url (car (split-string url "#")))
  4. (fn (expand-file-name
  5. (concat (file-name-nondirectory url) ".org")
  6. "~/Downloads")))
  7. (shell-command (format "pandoc %s -o %s --columns=70" url fn))
  8. (with-current-buffer (find-file fn)
  9. (hl-line-mode)
  10. (text-scale-set 3))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement