Skip to content

Instantly share code, notes, and snippets.

@nna774
Created November 4, 2014 18:35
Show Gist options
  • Save nna774/2a7be0b0ae44d13e7bf7 to your computer and use it in GitHub Desktop.
Save nna774/2a7be0b0ae44d13e7bf7 to your computer and use it in GitHub Desktop.
(defun post-on-region ()
(interactive)
(let ((str (buffer-substring (region-beginning) (region-end))))
(keyboard-escape-quit)
(if (y-or-n-p "Post?")
(start-process "ttytter" "*post*" "ttytter" "-silent" "-ssl" "-keyf=mnbn" "-autosplit=cut" (concat "-status=" str))
nil
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment