tools/gist: make gists private by default

This commit is contained in:
Henrik Lissner 2017-05-17 21:07:58 +02:00
parent 615cf15313
commit b1d545dafe

View file

@ -2,14 +2,16 @@
;;;###autoload (autoload '+gist:send "tools/gist/autoload/evil" nil t) ;;;###autoload (autoload '+gist:send "tools/gist/autoload/evil" nil t)
(evil-define-operator +gist:send (beg end search bang) (evil-define-operator +gist:send (beg end search bang)
"Create a private gist from the buffer. If BANG then make it public."
:type inclusive :repeat nil :type inclusive :repeat nil
(interactive "<r><!>") (interactive "<r><!>")
(if bang (if bang
(gist-region-or-buffer-private) (gist-region-or-buffer)
(gist-region-or-buffer))) (gist-region-or-buffer-private)))
;;;###autoload (autoload '+gist:list "tools/gist/autoload/evil" nil t) ;;;###autoload (autoload '+gist:list "tools/gist/autoload/evil" nil t)
(evil-define-command +gist:list (&optional username) (evil-define-command +gist:list (&optional username)
"Pop up a listing of gists."
(interactive "<a>") (interactive "<a>")
(if username (if username
(gist-list-user username) (gist-list-user username)