mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(startup): correctly setup deferred loading for various packages
This just ensures that various packages that can defer loading actually does defer until they're first used.
This commit is contained in:
@@ -36,7 +36,8 @@
|
||||
:after rust-mode
|
||||
:hook (flycheck-mode . flycheck-rust-setup))
|
||||
|
||||
(use-package rust-playground)
|
||||
(use-package rust-playground
|
||||
:defer t)
|
||||
|
||||
(provide 'siren-rust)
|
||||
;;; siren-rust.el ends here
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
(subword-mode +1)))
|
||||
|
||||
(use-package yaml-imenu
|
||||
:after yaml-mode
|
||||
:config
|
||||
(yaml-imenu-enable))
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
(use-package zone
|
||||
:straight (:type built-in)
|
||||
:defer t
|
||||
|
||||
:init
|
||||
(defun zone-choose (pgm)
|
||||
@@ -20,7 +21,8 @@
|
||||
(let ((zone-programs (list (intern pgm))))
|
||||
(zone))))
|
||||
|
||||
(use-package zone-nyan)
|
||||
(use-package zone-nyan
|
||||
:defer t)
|
||||
|
||||
(provide 'siren-zone)
|
||||
;;; siren-zone.el ends here
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
;;; Code:
|
||||
|
||||
(use-package anzu
|
||||
:bind
|
||||
("C-x C-r" . anzu-query-replace-regexp)
|
||||
("M-%" . anzu-query-replace)
|
||||
|
||||
:custom
|
||||
(anzu-mode-lighter "")
|
||||
(anzu-deactivate-region t)
|
||||
@@ -20,7 +24,6 @@
|
||||
|
||||
(global-set-key [remap query-replace] 'anzu-query-replace)
|
||||
(global-set-key [remap query-replace-regexp] 'anzu-query-replace-regexp)
|
||||
(global-set-key (kbd "C-x C-r") 'anzu-query-replace-regexp)
|
||||
|
||||
(global-anzu-mode +1))
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
(use-package dired
|
||||
:straight (:type built-in)
|
||||
:defer t
|
||||
:bind (:map dired-mode-map
|
||||
("M-?" . siren-dired-display-size))
|
||||
|
||||
@@ -62,6 +63,7 @@
|
||||
(file-attributes filename)))))
|
||||
|
||||
:config
|
||||
(require 'dired+)
|
||||
(when (string-match-p "^gnu" (symbol-name system-type))
|
||||
(setq dired-use-ls-dired t
|
||||
dired-listing-switches "-aBhl"))
|
||||
@@ -74,10 +76,11 @@
|
||||
dired-listing-switches "-aBhl")))))
|
||||
|
||||
(use-package dired-x
|
||||
:straight (:type built-in))
|
||||
:straight (:type built-in)
|
||||
:after dired)
|
||||
|
||||
(use-package dired+
|
||||
:demand t
|
||||
:defer t
|
||||
:bind (:map dired-mode-map
|
||||
("c" . dired-create-directory)
|
||||
("C-l" . diredp-up-directory-reuse-dir-buffer))
|
||||
@@ -94,10 +97,12 @@
|
||||
(unbind-key "M-l" dired-mode-map))
|
||||
|
||||
(use-package dired-subtree
|
||||
:after dired
|
||||
:bind (:map dired-mode-map
|
||||
("TAB" . dired-subtree-toggle)))
|
||||
|
||||
(use-package dired-narrow
|
||||
:after dired
|
||||
:bind (:map dired-mode-map
|
||||
("C-s" . dired-narrow))
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
(use-package helm-global-bindings
|
||||
:straight helm
|
||||
:demand t
|
||||
:demand
|
||||
:bind
|
||||
(:map helm-command-map
|
||||
("M" . helm-man-woman))
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
(use-package imenu
|
||||
:straight (:type built-in)
|
||||
:defer t
|
||||
|
||||
:custom
|
||||
(imenu-auto-rescan t)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
(require 'siren-windmove)
|
||||
|
||||
(use-package vterm
|
||||
:defer t
|
||||
:hook
|
||||
(vterm-mode . siren-vterm-mode-setup)
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
;; Allows searching forward/back (C-s/C-r) searching with multiple cursors.
|
||||
(use-package phi-search
|
||||
:after multiple-cursors
|
||||
:custom
|
||||
(phi-search-limit 3000))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user