Further init optimizations

This commit is contained in:
Jeremy Dormitzer 2020-01-14 10:23:55 -05:00
parent b387c1abb2
commit 4d41774760

View File

@ -264,13 +264,15 @@ Adds Evil commands to comment out lines of code:
* Transient * Transient
A framework for creating Magit-style popups: A framework for creating Magit-style popups:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package transient) (use-package transient
:commands (define-transient-command))
#+END_SRC #+END_SRC
* Hydra * Hydra
[[https://github.com/abo-abo/hydra][Hydra]]s are convenient keybinding menus. [[https://github.com/abo-abo/hydra][Hydra]]s are convenient keybinding menus.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package hydra) (use-package hydra
:defer t)
#+END_SRC #+END_SRC
* Magit * Magit
@ -392,10 +394,22 @@ Some helpful ELisp packages:
deferred:try deferred:try
deferred:timeout deferred:timeout
deferred:process)) deferred:process))
(use-package s) (use-package s
(use-package dash) :defer t
(use-package dash-functional) :init
(use-package f) (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 (use-package request
:commands (request request-deferred)) :commands (request request-deferred))
#+END_SRC #+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 #+BEGIN_SRC emacs-lisp
(use-package all-the-icons-dired (use-package all-the-icons-dired
:after (all-the-icons) :after (all-the-icons)
:commands (all-the-icons-dired-mode)
:config :config
(add-hook 'dired-mode-hook #'all-the-icons-dired-mode)) (add-hook 'dired-mode-hook #'all-the-icons-dired-mode))
#+END_SRC #+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: Edit-indirect allows markdown-mode to edit source blocks in separate buffers:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package edit-indirect) (use-package edit-indirect
:defer t)
#+END_SRC #+END_SRC
* IELM * IELM
@ -3902,7 +3918,8 @@ GraphQL environments:
And ob-graphql for evaluating GraphQL source blocks in org-mode: And ob-graphql for evaluating GraphQL source blocks in org-mode:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package ob-graphql) (use-package ob-graphql
:defer t)
#+END_SRC #+END_SRC
* Docker * 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! [[https://github.com/defunkt/gist.el][Integrate with GitHub gists]] from Emacs!
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package gist (use-package gist
:defer t
:config :config
(add-hook 'gist-mode-hook (add-hook 'gist-mode-hook
(lambda () (lambda ()