Skip to content

Instantly share code, notes, and snippets.

@takano32
Created May 29, 2009 07:18
Show Gist options
  • Save takano32/119826 to your computer and use it in GitHub Desktop.
Save takano32/119826 to your computer and use it in GitHub Desktop.
(defun twittering-update-status-with-region (start end)
"twittering-mode: update status with region"
(interactive "r")
(twittering-update-status-if-not-blank (buffer-substring start end)))
(defun my-twittering-update-status ()
"twittering-mode: my update status"
(interactive)
(if mark-active
(twittering-update-status-with-region (region-beginning) (region-end))
(twittering-update-status-interactive))
)
(global-set-key "\C-c\C-t" 'my-twittering-update-status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment