This is a breaking change! Update your :popup settings. Old ones will throw errors! Doom's new popup management system casts off its shackles (hur hur) and replaces them with the monster that is `display-buffer-alist`, and window parameters. However, this is highly experimental! Expect edge cases. Particularly with org-mode and magit (or anything that does its own window management). Relevant to #261, #263, #325
16 lines
582 B
EmacsLisp
16 lines
582 B
EmacsLisp
;;; tools/gist/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; 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! :evil-state 'gist-list-mode 'normal)
|
|
|
|
(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))
|