Add tools/gist
This commit is contained in:
parent
eb8759041f
commit
e12ee964ca
7 changed files with 76 additions and 6 deletions
16
modules/tools/gist/autoload/evil.el
Normal file
16
modules/tools/gist/autoload/evil.el
Normal file
|
@ -0,0 +1,16 @@
|
|||
;;; tools/gist/autoload/evil.el
|
||||
|
||||
;;;###autoload (autoload '+gist:send "tools/gist/autoload/evil" nil t)
|
||||
(evil-define-operator +gist:send (beg end search bang)
|
||||
:type inclusive :repeat nil
|
||||
(interactive "<r><!>")
|
||||
(if bang
|
||||
(gist-region-or-buffer-private)
|
||||
(gist-region-or-buffer)))
|
||||
|
||||
;;;###autoload (autoload '+gist:list "tools/gist/autoload/evil" nil t)
|
||||
(evil-define-command +gist:list (&optional username)
|
||||
(interactive "<a>")
|
||||
(if username
|
||||
(gist-list-user username)
|
||||
(gist-list)))
|
13
modules/tools/gist/autoload/gist.el
Normal file
13
modules/tools/gist/autoload/gist.el
Normal file
|
@ -0,0 +1,13 @@
|
|||
;;; tools/gist/autoload/gist.el
|
||||
|
||||
;;;###autoload
|
||||
(defun +gist/open-current ()
|
||||
(interactive)
|
||||
(gist-fetch-current)
|
||||
(doom/popup-close-all))
|
||||
|
||||
;;;###autoload
|
||||
(defun +gist/kill-cache ()
|
||||
(interactive)
|
||||
(delete-directory (expand-file-name "gh" pcache-directory) t)
|
||||
(message "gist.el cache cleared"))
|
Loading…
Add table
Add a link
Reference in a new issue