doomemacs/modules/tools/gist/autoload/evil.el
2017-11-05 01:16:35 +01:00

20 lines
653 B
EmacsLisp

;;; tools/gist/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :feature evil)
;;;###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."
:type inclusive :repeat nil
(interactive "<!>")
(if bang
(gist-region-or-buffer)
(gist-region-or-buffer-private)))
;;;###autoload (autoload '+gist:list "tools/gist/autoload/evil" nil t)
(evil-define-command +gist:list (&optional username)
"Pop up a listing of gists."
(interactive "<a>")
(if username
(gist-list-user username)
(gist-list)))