Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun gist-region-or-buffer (&optional private)
- "Post either the current region, or if mark is not set, the current buffer as a new paste at gist.github.com
- Copies the URL into the kill ring.
- With a prefix argument, makes a private paste."
- (interactive "P")
- (condition-case nil
- (gist-region (point) (mark) private)
- (mark-inactive (gist-buffer private))))
Add Comment
Please, Sign In to add comment