about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el16
1 files changed, 15 insertions, 1 deletions
diff --git a/init.el b/init.el index b3b6396..4e11921 100644 --- a/init.el +++ b/init.el
@@ -53,6 +53,10 @@
53 no-littering-var-directory (acdw/dir)) 53 no-littering-var-directory (acdw/dir))
54 (require 'no-littering)) 54 (require 'no-littering))
55 55
56;;;; `idle-require'
57(setup (:straight idle-require)
58 (idle-require-mode +1))
59
56;;;; My packages 60;;;; My packages
57(when-let ((default-directory 61(when-let ((default-directory
58 (expand-file-name-exists-p "pkg/" user-emacs-directory))) 62 (expand-file-name-exists-p "pkg/" user-emacs-directory)))
@@ -263,6 +267,8 @@
263 (:option eshell-directory-name (acdw/dir "eshell/" t) 267 (:option eshell-directory-name (acdw/dir "eshell/" t)
264 eshell-aliases-file (acdw/dir "eshell/aliases" t)) 268 eshell-aliases-file (acdw/dir "eshell/aliases" t))
265 269
270 (idle-require 'eshell)
271
266 (defun eshell-quit-or-delete-char (arg) 272 (defun eshell-quit-or-delete-char (arg)
267 "Delete the character to the right, or quit eshell on an empty line." 273 "Delete the character to the right, or quit eshell on an empty line."
268 (interactive "p") 274 (interactive "p")
@@ -337,8 +343,12 @@
337 (:option gnus-home-directory (expand-file-name "gnus" user-emacs-directory) 343 (:option gnus-home-directory (expand-file-name "gnus" user-emacs-directory)
338 gnus-directory (expand-file-name "gnus/News" user-emacs-directory) 344 gnus-directory (expand-file-name "gnus/News" user-emacs-directory)
339 gnus-init-file (expand-file-name "gnus.el" user-emacs-directory)) 345 gnus-init-file (expand-file-name "gnus.el" user-emacs-directory))
346
340 (when (not (file-exists-p gnus-directory)) 347 (when (not (file-exists-p gnus-directory))
341 (make-directory gnus-directory :parents)) 348 (make-directory gnus-directory :parents))
349
350 (idle-require 'gnus)
351
342 (:leader "m" gnus)) 352 (:leader "m" gnus))
343 353
344(setup imenu 354(setup imenu
@@ -740,7 +750,9 @@ if ripgrep is installed, otherwise `consult-grep'."
740 (require 'gemini-write)))) 750 (require 'gemini-write))))
741 751
742(setup (:straight expand-region) 752(setup (:straight expand-region)
743 (:global "C-=" er/expand-region)) 753 (:global "C-=" er/expand-region)
754
755 (idle-require 'expand-region))
744 756
745(setup (:straight fennel-mode) 757(setup (:straight fennel-mode)
746 (:needs "fennel") 758 (:needs "fennel")
@@ -889,6 +901,8 @@ if ripgrep is installed, otherwise `consult-grep'."
889 org-startup-truncated nil 901 org-startup-truncated nil
890 org-tags-column (- 0 fill-column -3) 902 org-tags-column (- 0 fill-column -3)
891 org-directory "~/org") 903 org-directory "~/org")
904
905 (idle-require 'org)
892 906
893 (:bind "RET" acdw-org/return-dwim 907 (:bind "RET" acdw-org/return-dwim
894 "<S-return>" acdw-org/org-table-copy-down) 908 "<S-return>" acdw-org/org-table-copy-down)