General refactor, cleanup & commenting

This commit is contained in:
Henrik Lissner 2017-05-10 05:28:50 +02:00
parent 8707a80c2b
commit e265431507
12 changed files with 251 additions and 241 deletions

View file

@ -4,10 +4,13 @@
(defun +gist/open-current ()
(interactive)
(gist-fetch-current)
(doom/popup-close-all))
(when-let (win (get-buffer-window "*github:gists*"))
(doom/popup-close win)))
;;;###autoload
(defun +gist/kill-cache ()
"Clears the gist cache. Necessary when a faulty cache causes gist.el to be
entirely unuseable."
(interactive)
(delete-directory (expand-file-name "gh" pcache-directory) t)
(message "gist.el cache cleared"))