Last active
August 29, 2015 14:04
-
-
Save dsjt/73d5b8449916da18c709 to your computer and use it in GitHub Desktop.
tweet-current-line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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