+ :popup -> set-popup-rule! + :popups -> set-popup-rules! + :company-backend -> set-company-backend! + :evil-state -> set-evil-initial-state! I am slowly phasing out the setting system (def-setting! and set!), starting with these. What are autodefs? These are functions that are always defined, whether or not their respective modules are enabled. However, when their modules are disabled, they are replaced with macros that no-op and don't waste time evaluating their arguments. The old set! function will still work, for a while.
14 lines
493 B
EmacsLisp
14 lines
493 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.
|
|
|
|
(after! gist
|
|
(set-evil-initial-state! 'gist-list-mode 'normal)
|
|
|
|
(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))
|