diff --git a/emacs/init.org b/emacs/init.org index 715a8bc..176a928 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -264,13 +264,15 @@ Adds Evil commands to comment out lines of code: * Transient A framework for creating Magit-style popups: #+BEGIN_SRC emacs-lisp - (use-package transient) + (use-package transient + :commands (define-transient-command)) #+END_SRC * Hydra [[https://github.com/abo-abo/hydra][Hydra]]s are convenient keybinding menus. #+BEGIN_SRC emacs-lisp - (use-package hydra) + (use-package hydra + :defer t) #+END_SRC * Magit @@ -392,10 +394,22 @@ Some helpful ELisp packages: deferred:try deferred:timeout deferred:process)) - (use-package s) - (use-package dash) - (use-package dash-functional) - (use-package f) + (use-package s + :defer t + :init + (add-hook 'emacs-startup-hook (lambda () (require 's)))) + (use-package dash + :defer t + :init + (add-hook 'emacs-startup-hook (lambda () (require 'dash)))) + (use-package dash-functional + :defer t + :init + (add-hook 'emacs-startup-hook (lambda () (require 'dash-functional)))) + (use-package f + :defer t + :init + (add-hook 'emacs-startup-hook (lambda () (require 'f)))) (use-package request :commands (request request-deferred)) #+END_SRC @@ -1227,6 +1241,7 @@ And while we're here let's enable all-the-icons for dired as well: #+BEGIN_SRC emacs-lisp (use-package all-the-icons-dired :after (all-the-icons) + :commands (all-the-icons-dired-mode) :config (add-hook 'dired-mode-hook #'all-the-icons-dired-mode)) #+END_SRC @@ -2522,7 +2537,8 @@ A function to format XML using tidy or xmllint if available, falling back to sgm Edit-indirect allows markdown-mode to edit source blocks in separate buffers: #+BEGIN_SRC emacs-lisp - (use-package edit-indirect) + (use-package edit-indirect + :defer t) #+END_SRC * IELM @@ -3902,7 +3918,8 @@ GraphQL environments: And ob-graphql for evaluating GraphQL source blocks in org-mode: #+BEGIN_SRC emacs-lisp - (use-package ob-graphql) + (use-package ob-graphql + :defer t) #+END_SRC * Docker @@ -4672,6 +4689,7 @@ Add a function to power the [[https://orgmode.org/worg/org-contrib/alfred-org-ca [[https://github.com/defunkt/gist.el][Integrate with GitHub gists]] from Emacs! #+BEGIN_SRC emacs-lisp (use-package gist + :defer t :config (add-hook 'gist-mode-hook (lambda ()