doomemacs/modules/tools/gist/config.el
Henrik Lissner fbe782df22 Heavily redesign keybinding design
+ SPC and SPC m as leader/localleader (spacemacs-ey)
+ Move all custom keybindings to private +bindings.el file
+ Redesign+rearrange keybindings
2017-05-28 02:48:20 +02:00

21 lines
697 B
EmacsLisp

;;; tools/gist/config.el
;; NOTE On occasion, the cache gets corrupted, causing wrong-type-argument
;; errors. If that happens, try `+gist/kill-cache'. You may have to restart
;; Emacs.
(def-package! gist
:commands (gist-list gist-region-or-buffer-private gist-region-or-buffer)
:config
(set! :popup "*github:gists*" :size 15 :select t :autokill t)
;; evil-ify gist listing
(set! :evil-state 'gist-list-mode 'normal)
(when (bound-and-true-p shackle-mode)
(defun +gist*list-render (orig-fn &rest args)
(funcall orig-fn (car args) t)
(unless (cadr args)
(doom-popup-buffer (current-buffer))))
(advice-add #'gist-list-render :around #'+gist*list-render)))