Now that we are loading package autoloads files (as part of the generated doom-package-autoload-file when running make autoloads), many :commands properties are redundant. In fact, many def-package! blocks are redundant. In some cases, we can do without a config.el file entirely, and can move into the autoloads file or rely entirely on package autoloads. Also, many settings have been moved in their module's autoloads files, which makes them available ASAP; their use no longer depends on module load order. This gained me a modest ~10% boost in startup speed.
14 lines
486 B
EmacsLisp
14 lines
486 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-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))
|