2017-06-08 11:47:56 +02:00
|
|
|
;;; 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.
|
|
|
|
|
2018-05-25 00:46:11 +02:00
|
|
|
(after! gist
|
2018-06-15 02:58:12 +02:00
|
|
|
(set-evil-initial-state! 'gist-list-mode 'normal)
|
2017-05-07 15:10:46 +02:00
|
|
|
|
2019-04-02 12:50:18 -04:00
|
|
|
(set-popup-rule! "^\\*gist-" :ignore t)
|
|
|
|
|
2017-06-08 11:47:56 +02:00
|
|
|
(defun +gist*list-render (orig-fn &rest args)
|
|
|
|
(funcall orig-fn (car args) t)
|
|
|
|
(unless (cadr args)
|
2018-01-06 03:27:23 -05:00
|
|
|
(pop-to-buffer (current-buffer))))
|
2017-06-08 11:47:56 +02:00
|
|
|
(advice-add #'gist-list-render :around #'+gist*list-render))
|