doomemacs/modules/tools/gist/config.el

17 lines
513 B
EmacsLisp
Raw Normal View History

;;; tools/gist/config.el -*- lexical-binding: t; -*-
2017-05-07 15:10:46 +02: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 15:10:46 +02:00
(set-popup-rule! "^\\*gist-" :ignore t)
2019-07-22 23:35:25 +02:00
(def-advice! +gist-list-render-a (orig-fn &rest args)
:around #'gist-list-render
(funcall orig-fn (car args) t)
(unless (cadr args)
2019-07-22 23:35:25 +02:00
(pop-to-buffer (current-buffer)))))