doomemacs/modules/tools/gist/autoload/evil.el

20 lines
652 B
EmacsLisp
Raw Normal View History

;;; tools/gist/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil)
2017-05-07 15:10:46 +02:00
;;;###autoload (autoload '+gist:send "tools/gist/autoload/evil" nil t)
(evil-define-operator +gist:send (bang)
"Create a private gist from the buffer. If BANG then make it public."
2017-05-07 15:10:46 +02:00
:type inclusive :repeat nil
(interactive "<!>")
2017-05-07 15:10:46 +02:00
(if bang
(gist-region-or-buffer)
(gist-region-or-buffer-private)))
2017-05-07 15:10:46 +02:00
;;;###autoload (autoload '+gist:list "tools/gist/autoload/evil" nil t)
(evil-define-command +gist:list (&optional username)
"Pop up a listing of gists."
2017-05-07 15:10:46 +02:00
(interactive "<a>")
(if username
(gist-list-user username)
(gist-list)))