diff --git a/custom.el b/custom.el index bd10fc6..c294359 100644 --- a/custom.el +++ b/custom.el @@ -94,9 +94,11 @@ (defun fez/ttm-upload () "Upload file in selected buffer to ttm.sh and output the link in the echo area (and in *Messages*)" (interactive) - (message "%s" (shell-command-to-string (concat "curl -Ffile=@" - (buffer-file-name) - " https://ttm.sh")))) + (let ((link (shell-command-to-string (concat "curl -Ffile=@" + (buffer-file-name) + " https://ttm.sh -s")))) + (message "%s" link) + (kill-new link))) (defun fez/last-occurrence-of-char (c) "Go to the previous occurrence of C in the current buffer."