diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-09-15 22:06:44 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-09-15 22:06:44 +0200 |
commit | f04581ddc80069e7daa1e9ca4eb567ad16b70c58 (patch) | |
tree | e00a1aebb7aa26f5fc4134fa21cdce410d24eebf /.config/emacs | |
parent | 64001e45d3e77590a72cfaab595fe593914f7693 (diff) |
emacs: Add webpage contents
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/modules/mm-editing.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/emacs/modules/mm-editing.el b/.config/emacs/modules/mm-editing.el index 4c5e8be..8105fc2 100644 --- a/.config/emacs/modules/mm-editing.el +++ b/.config/emacs/modules/mm-editing.el @@ -300,6 +300,18 @@ surround with spaces." (push '("`" . "'") surround-pairs)))) +;;; Insert Webpage Contents + +(defun mm-insert-from-url (url) + "Insert the contents of URL at point." + (interactive + (let ((url-at-point (thing-at-point 'url))) + (list (read-string + (format-prompt "URL" url-at-point) + nil nil url-at-point)))) + (call-process "curl" nil '(t nil) nil url)) + + ;;; Emmet Mode (defun mm-editing-emmet-dwim (arg) |