summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-11-02 18:35:34 +0200
committerGravatar Uko Kokņevičs2024-11-02 18:35:34 +0200
commit9c2d2a60f310b3dfe804601cc4e8eac1ae68f46e (patch)
treeb69851e6bbbf422b5736c59eda0ea08ad0eadeb0 /init.el
parentIn the beginning there was darkness (diff)
downloademacs.d-9c2d2a60f310b3dfe804601cc4e8eac1ae68f46e.tar.gz
emacs.d-9c2d2a60f310b3dfe804601cc4e8eac1ae68f46e.tar.xz
emacs.d-9c2d2a60f310b3dfe804601cc4e8eac1ae68f46e.zip
Get rid of use-package-always-defer
Diffstat (limited to 'init.el')
-rw-r--r--init.el42
1 files changed, 9 insertions, 33 deletions
diff --git a/init.el b/init.el
index aac823d..56b0188 100644
--- a/init.el
+++ b/init.el
@@ -136,28 +136,22 @@
136(add-hook 'before-save-hook #'delete-trailing-whitespace) 136(add-hook 'before-save-hook #'delete-trailing-whitespace)
137 137
138;; use-package 138;; use-package
139(use-package use-package 139(use-package use-package)
140 :custom
141 (use-package-always-defer t))
142 140
143;; HIC SVNT DRACONES 141;; HIC SVNT DRACONES
144 142
145(use-package ace-window 143(use-package ace-window
146 :straight t 144 :straight t
147 :demand t
148 :bind (([remap other-window] . ace-window) 145 :bind (([remap other-window] . ace-window)
149 ("C-x o" . ace-window))) 146 ("C-x o" . ace-window)))
150 147
151(use-package auto-compile 148(use-package auto-compile
152 :straight t 149 :straight t
153 :demand t 150 :hook ((emacs-lisp-mode . auto-compile-on-load-mode)
154 :config 151 (emacs-lisp-mode . auto-compile-on-save-mode)))
155 (auto-compile-on-load-mode)
156 (auto-compile-on-save-mode))
157 152
158(use-package battery 153(use-package battery
159 :straight '(battery :type built-in) 154 :straight '(battery :type built-in)
160 :demand t
161 :config 155 :config
162 (display-battery-mode)) 156 (display-battery-mode))
163 157
@@ -177,6 +171,7 @@
177 171
178(use-package centaur-tabs 172(use-package centaur-tabs
179 :straight t 173 :straight t
174 ;; Demanded because we have a hook to disable the mode locally but we want it to be global ASAP
180 :demand t 175 :demand t
181 :hook ((dashboard-mode . (lambda () (centaur-tabs-local-mode +1)))) 176 :hook ((dashboard-mode . (lambda () (centaur-tabs-local-mode +1))))
182 :bind (("C-x <C-right>" . centaur-tabs-forward) 177 :bind (("C-x <C-right>" . centaur-tabs-forward)
@@ -210,7 +205,6 @@
210 205
211(use-package company 206(use-package company
212 :straight t 207 :straight t
213 :demand t
214 :custom 208 :custom
215 (company-format-margin-function #'company-text-icons-margin) 209 (company-format-margin-function #'company-text-icons-margin)
216 (company-text-face-extra-attributes '(:weight bold)) 210 (company-text-face-extra-attributes '(:weight bold))
@@ -238,7 +232,6 @@
238 232
239(use-package counsel 233(use-package counsel
240 :straight t 234 :straight t
241 :demand t
242 :config 235 :config
243 (counsel-mode +1)) 236 (counsel-mode +1))
244 237
@@ -258,7 +251,6 @@
258 251
259(use-package dashboard 252(use-package dashboard
260 :straight t 253 :straight t
261 :demand t
262 :hook (after-init . dashboard-setup-startup-hook) 254 :hook (after-init . dashboard-setup-startup-hook)
263 :custom 255 :custom
264 (dashboard-center-content nil) 256 (dashboard-center-content nil)
@@ -271,6 +263,7 @@
271 263
272(use-package display-fill-column-indicator 264(use-package display-fill-column-indicator
273 :straight '(display-fill-column-indicator :type built-in) 265 :straight '(display-fill-column-indicator :type built-in)
266 ;; Demanded because we have a hook to disable the mode locally but we want it to be global ASAP
274 :demand t 267 :demand t
275 :hook (dashboard-mode . (lambda () (display-fill-column-indicator-mode -1))) 268 :hook (dashboard-mode . (lambda () (display-fill-column-indicator-mode -1)))
276 :config 269 :config
@@ -278,6 +271,7 @@
278 271
279(use-package display-line-numbers 272(use-package display-line-numbers
280 :straight '(display-line-numbers :type built-in) 273 :straight '(display-line-numbers :type built-in)
274 ;; Demanded because we have a hook to disable the mode locally but we want it to be global ASAP
281 :demand t 275 :demand t
282 :hook (help-mode . (lambda () (display-line-numbers-mode -1))) 276 :hook (help-mode . (lambda () (display-line-numbers-mode -1)))
283 :config 277 :config
@@ -290,7 +284,6 @@
290 284
291(use-package doom-modeline 285(use-package doom-modeline
292 :straight t 286 :straight t
293 :demand t
294 :custom 287 :custom
295 (doom-modeline-icon t) 288 (doom-modeline-icon t)
296 (doom-modeline-height 25) 289 (doom-modeline-height 25)
@@ -299,7 +292,6 @@
299 292
300(use-package doom-themes 293(use-package doom-themes
301 :straight t 294 :straight t
302 :demand t
303 :custom 295 :custom
304 (doom-themes-enable-bold t) 296 (doom-themes-enable-bold t)
305 (doom-themes-enable-italic t) 297 (doom-themes-enable-italic t)
@@ -309,13 +301,11 @@
309 (use-package doom-themes-ext-org 301 (use-package doom-themes-ext-org
310 :after org 302 :after org
311 :straight doom-themes 303 :straight doom-themes
312 :demand t
313 :config 304 :config
314 (doom-themes-org-config)) 305 (doom-themes-org-config))
315 306
316 (use-package doom-themes-ext-visual-bell 307 (use-package doom-themes-ext-visual-bell
317 :straight doom-themes 308 :straight doom-themes
318 :demand t
319 :config 309 :config
320 (doom-themes-visual-bell-config))) 310 (doom-themes-visual-bell-config)))
321 311
@@ -326,7 +316,6 @@
326 316
327(use-package editorconfig 317(use-package editorconfig
328 :straight t 318 :straight t
329 :demand t
330 :config 319 :config
331 (editorconfig-mode +1)) 320 (editorconfig-mode +1))
332 321
@@ -344,13 +333,11 @@
344 333
345(use-package emojify 334(use-package emojify
346 :straight t 335 :straight t
347 :demand t
348 :config 336 :config
349 (global-emojify-mode +1)) 337 (global-emojify-mode +1))
350 338
351(use-package files 339(use-package files
352 :straight '(files :type built-in) 340 :straight '(files :type built-in)
353 :demand t
354 :custom 341 :custom
355 (major-mode-remap-alist '((c-mode . c-ts-mode) 342 (major-mode-remap-alist '((c-mode . c-ts-mode)
356 (c-or-c++-mode . c-or-c++-ts-mode) 343 (c-or-c++-mode . c-or-c++-ts-mode)
@@ -375,7 +362,6 @@
375 362
376(use-package gcmh 363(use-package gcmh
377 :straight t 364 :straight t
378 :demand t
379 :custom 365 :custom
380 (gcmh-idle-delay 'auto) 366 (gcmh-idle-delay 'auto)
381 (gcmh-auto-idle-delay-factor 10) 367 (gcmh-auto-idle-delay-factor 10)
@@ -389,7 +375,6 @@
389 375
390(use-package git-gutter 376(use-package git-gutter
391 :straight t 377 :straight t
392 :demand t
393 :config 378 :config
394 (global-git-gutter-mode +1)) 379 (global-git-gutter-mode +1))
395 380
@@ -405,25 +390,23 @@
405 390
406(use-package hl-line 391(use-package hl-line
407 :straight '(hl-line :type built-in) 392 :straight '(hl-line :type built-in)
408 :demand t
409 :config 393 :config
410 (global-hl-line-mode +1)) 394 (global-hl-line-mode +1))
411 395
412(use-package hl-todo 396(use-package hl-todo
413 :straight t 397 :straight t
414 :demand t
415 :config 398 :config
416 (global-hl-todo-mode +1)) 399 (global-hl-todo-mode +1))
417 400
418(use-package ibuffer 401(use-package ibuffer
419 :straight '(ibuffer :type built-in) 402 :straight '(ibuffer :type built-in)
420 :demand t
421 :bind (("C-x C-b" . ibuffer) 403 :bind (("C-x C-b" . ibuffer)
422 ([remap list-buffers] . ibuffer))) 404 ([remap list-buffers] . ibuffer)))
423 405
424(use-package ivy 406(use-package ivy
425 :after (counsel swiper) 407 :after (counsel swiper)
426 :straight t 408 :straight t
409 ;; Demanded to enable ivy-mode globally ASAP.
427 :demand t 410 :demand t
428 :bind (("C-c r" . ivy-resume) 411 :bind (("C-c r" . ivy-resume)
429 ("C-c v" . ivy-push-view) 412 ("C-c v" . ivy-push-view)
@@ -457,8 +440,7 @@
457 440
458(use-package magit 441(use-package magit
459 ;; TODO: Do some proper setup 442 ;; TODO: Do some proper setup
460 :straight t 443 :straight t)
461 :demand t)
462 444
463(use-package make-mode 445(use-package make-mode
464 :straight '(make-mode :type built-in) 446 :straight '(make-mode :type built-in)
@@ -493,8 +475,7 @@
493 :mode ("\\.org\\'" . org-mode) 475 :mode ("\\.org\\'" . org-mode)
494 :init 476 :init
495 (use-package htmlize 477 (use-package htmlize
496 :straight t 478 :straight t)
497 :demand t)
498 :custom 479 :custom
499 (org-log-done t)) 480 (org-log-done t))
500 481
@@ -509,7 +490,6 @@
509 490
510(use-package prog-mode 491(use-package prog-mode
511 :straight '(prog-mode :type built-in) 492 :straight '(prog-mode :type built-in)
512 :demand t
513 :preface 493 :preface
514 (defun prepend-prettify (items) 494 (defun prepend-prettify (items)
515 (setq prettify-symbols-alist (append items prettify-symbols-alist)) 495 (setq prettify-symbols-alist (append items prettify-symbols-alist))
@@ -572,7 +552,6 @@
572 552
573(use-package project 553(use-package project
574 :straight '(project :type built-in) 554 :straight '(project :type built-in)
575 :demand t
576 :init 555 :init
577 (cl-defun arkta/project-completing-read (prompt choices &key initial-input action (project (project-current t))) 556 (cl-defun arkta/project-completing-read (prompt choices &key initial-input action (project (project-current t)))
578 "Present a project tailored PROMPT with CHOICES." 557 "Present a project tailored PROMPT with CHOICES."
@@ -733,7 +712,6 @@ A thin wrapper around `xref-references-in-directory'."
733 712
734(use-package solaire-mode 713(use-package solaire-mode
735 :straight t 714 :straight t
736 :demand t
737 :config 715 :config
738 (solaire-global-mode +1)) 716 (solaire-global-mode +1))
739 717
@@ -746,7 +724,6 @@ A thin wrapper around `xref-references-in-directory'."
746 724
747(use-package time 725(use-package time
748 :straight '(time :type built-in) 726 :straight '(time :type built-in)
749 :demand t
750 :custom 727 :custom
751 (display-time-default-load-average nil) 728 (display-time-default-load-average nil)
752 :config 729 :config
@@ -767,7 +744,6 @@ A thin wrapper around `xref-references-in-directory'."
767 744
768(use-package treesit 745(use-package treesit
769 :straight '(treesit :type built-in) 746 :straight '(treesit :type built-in)
770 :demand t
771 :config 747 :config
772 (setq treesit-extra-load-path 748 (setq treesit-extra-load-path
773 (list (expand-file-name "tree-sitter" local-config-dir))) 749 (list (expand-file-name "tree-sitter" local-config-dir)))