Skip to content

Instantly share code, notes, and snippets.

@dsjt
Last active August 29, 2015 14:04
Show Gist options
  • Save dsjt/73d5b8449916da18c709 to your computer and use it in GitHub Desktop.
Save dsjt/73d5b8449916da18c709 to your computer and use it in GitHub Desktop.
tweet-current-line
(defun tweet-current-line()
(interactive)
(let* ((clbeg (progn (forward-line 0) (point)))
(clend (progn (end-of-visible-line) (point)))
(tw-string (buffer-substring clbeg clend)))
(if (y-or-n-p (format "post \"%s\"?" tw-string))
(progn (twittering-update-status-from-pop-up-buffer tw-string)
(twittering-edit-post-status)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment