Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default. Addresses #286
This commit is contained in:
parent
2cbd1b9107
commit
9d81bc5a8b
45 changed files with 90 additions and 151 deletions
|
@ -11,7 +11,6 @@
|
|||
;;
|
||||
|
||||
(def-package! helm
|
||||
:demand t
|
||||
:init
|
||||
(setq helm-quick-update t
|
||||
;; Speedier without fuzzy matching
|
||||
|
@ -77,15 +76,18 @@
|
|||
|
||||
|
||||
(def-package! helm-locate
|
||||
:defer t
|
||||
:init (defvar helm-generic-files-map (make-sparse-keymap))
|
||||
:config (set-keymap-parent helm-generic-files-map helm-map))
|
||||
|
||||
|
||||
(def-package! helm-bookmark
|
||||
:commands helm-bookmark
|
||||
:config (setq-default helm-bookmark-show-location t))
|
||||
|
||||
|
||||
(def-package! helm-files
|
||||
:defer t
|
||||
:config
|
||||
(setq helm-boring-file-regexp-list
|
||||
(append (list "\\.projects$" "\\.DS_Store$")
|
||||
|
@ -93,6 +95,7 @@
|
|||
|
||||
|
||||
(def-package! helm-ag
|
||||
:defer t
|
||||
:config
|
||||
(map! :map helm-ag-edit-map
|
||||
[remap doom/kill-this-buffer] #'helm-ag--edit-abort
|
||||
|
|
|
@ -22,11 +22,18 @@
|
|||
(ido-mode 1)
|
||||
(ido-everywhere 1)
|
||||
(require 'ido-ubiquitous)
|
||||
(ido-ubiquitous-mode 1)
|
||||
|
||||
(defun +ido|init ()
|
||||
(require 'ido-vertical-mode)
|
||||
(ido-vertical-mode 1)
|
||||
|
||||
(require 'flx-ido)
|
||||
(flx-ido-mode +1)
|
||||
|
||||
(require 'crm-custom)
|
||||
(crm-custom-mode +1)
|
||||
|
||||
(map! :map (ido-common-completion-map ido-completion-map ido-file-completion-map)
|
||||
"C-n" #'ido-next-match
|
||||
"C-p" #'ido-prev-match
|
||||
|
@ -55,12 +62,3 @@
|
|||
(insert "~/")
|
||||
(call-interactively #'self-insert-command)))))
|
||||
(add-hook 'ido-setup-hook #'+ido|setup-home-keybind))
|
||||
|
||||
|
||||
(def-package! ido-ubiquitous :config (ido-ubiquitous-mode 1))
|
||||
|
||||
(def-package! ido-vertical-mode :config (ido-vertical-mode 1))
|
||||
|
||||
(def-package! flx-ido :config (flx-ido-mode +1))
|
||||
|
||||
(def-package! crm-custom :config (crm-custom-mode +1))
|
||||
|
|
|
@ -24,7 +24,6 @@ immediately runs it on the current candidate (ending the ivy session)."
|
|||
;;
|
||||
|
||||
(def-package! ivy
|
||||
:demand t
|
||||
:init
|
||||
(add-hook 'doom-post-init-hook #'ivy-mode)
|
||||
:config
|
||||
|
@ -83,7 +82,7 @@ immediately runs it on the current candidate (ending the ivy session)."
|
|||
|
||||
|
||||
(def-package! counsel
|
||||
:after ivy
|
||||
:requires ivy
|
||||
:config
|
||||
(require 'counsel-projectile)
|
||||
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue