doomemacs/modules/tools/gist/config.el

15 lines
493 B
EmacsLisp
Raw Normal View History

;;; tools/gist/config.el -*- lexical-binding: t; -*-
2017-05-07 21:10:46 +08:00
;; 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.
(after! gist
(set-evil-initial-state! 'gist-list-mode 'normal)
2017-05-07 21:10:46 +08:00
(defun +gist*list-render (orig-fn &rest args)
(funcall orig-fn (car args) t)
(unless (cadr args)
(pop-to-buffer (current-buffer))))
(advice-add #'gist-list-render :around #'+gist*list-render))