diff options
-rw-r--r-- | init.el | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/init.el b/init.el index 5e4f19d..6296242 100644 --- a/init.el +++ b/init.el | |||
@@ -91,21 +91,21 @@ | |||
91 | :straight nil | 91 | :straight nil |
92 | :custom | 92 | :custom |
93 | (show-paren-style 'mixed) | 93 | (show-paren-style 'mixed) |
94 | :hook | 94 | :config |
95 | (after-init-hook . show-paren-mode)) | 95 | (show-paren-mode)) |
96 | 96 | ||
97 | (use-package simple | 97 | (use-package simple |
98 | :straight nil | 98 | :straight nil |
99 | :custom | 99 | :custom |
100 | (save-interprogram-paste-before-kill | 100 | (save-interprogram-paste-before-kill |
101 | t "Save existing clipboard text into killring before replacing it.") | 101 | t "Save existing clipboard text into killring before replacing it.") |
102 | :hook | 102 | :config |
103 | (after-init-hook . global-visual-line-mode)) | 103 | (global-visual-line-mode)) |
104 | 104 | ||
105 | (use-package delsel | 105 | (use-package delsel |
106 | :straight nil | 106 | :straight nil |
107 | :hook | 107 | :config |
108 | (after-init-hook . delete-selection-mode)) | 108 | (delete-selection-mode)) |
109 | 109 | ||
110 | (use-package emacs | 110 | (use-package emacs |
111 | :straight nil | 111 | :straight nil |
@@ -245,16 +245,16 @@ | |||
245 | :custom | 245 | :custom |
246 | (recentf-max-menu-items 100) | 246 | (recentf-max-menu-items 100) |
247 | (recentf-max-saved-items 100) | 247 | (recentf-max-saved-items 100) |
248 | :hook | 248 | :config |
249 | (after-init-hook . recentf-mode)) | 249 | (recentf-mode)) |
250 | 250 | ||
251 | ;;;; Save places in files | 251 | ;;;; Save places in files |
252 | (use-package saveplace | 252 | (use-package saveplace |
253 | :custom | 253 | :custom |
254 | (save-place-file (no-littering-expand-var-file-name "places")) | 254 | (save-place-file (no-littering-expand-var-file-name "places")) |
255 | (save-place-forget-unreadable-files (not *acdw/at-work*)) | 255 | (save-place-forget-unreadable-files (not *acdw/at-work*)) |
256 | :hook | 256 | :config |
257 | (after-init-hook . save-place-mode)) | 257 | (save-place-mode)) |
258 | 258 | ||
259 | ;;;; Save history of commands, etc. | 259 | ;;;; Save history of commands, etc. |
260 | (use-package savehist | 260 | (use-package savehist |
@@ -263,8 +263,7 @@ | |||
263 | '(kill-ring | 263 | '(kill-ring |
264 | search-ring | 264 | search-ring |
265 | regexp-search-ring)) | 265 | regexp-search-ring)) |
266 | :hook | 266 | (savehist-mode)) |
267 | (after-init-hook . savehist-mode)) | ||
268 | 267 | ||
269 | ;;;; Authority sources for logins | 268 | ;;;; Authority sources for logins |
270 | ;; TODO: use gpg | 269 | ;; TODO: use gpg |
@@ -282,8 +281,9 @@ | |||
282 | (auto-save-default nil) | 281 | (auto-save-default nil) |
283 | (super-save-auto-save-when-idle t) | 282 | (super-save-auto-save-when-idle t) |
284 | (super-save-exclude '(".gpg")) | 283 | (super-save-exclude '(".gpg")) |
285 | :hook | 284 | :config |
286 | (after-init-hook . super-save-mode)) | 285 | (super-save-mode)) |
286 | |||
287 | ;;;;; Restart emacs /from within/ emacs | 287 | ;;;;; Restart emacs /from within/ emacs |
288 | (use-package restart-emacs) | 288 | (use-package restart-emacs) |
289 | 289 | ||
@@ -292,8 +292,8 @@ | |||
292 | (use-package which-key | 292 | (use-package which-key |
293 | :custom | 293 | :custom |
294 | (which-key-enable-extended-define-key t) | 294 | (which-key-enable-extended-define-key t) |
295 | :hook | 295 | :config |
296 | (after-init-hook . which-key-mode)) | 296 | (which-key-mode)) |
297 | 297 | ||
298 | ;;;;; A better help buffer | 298 | ;;;;; A better help buffer |
299 | (use-package helpful | 299 | (use-package helpful |
@@ -321,23 +321,23 @@ | |||
321 | (enable-recursive-minibuffers t) | 321 | (enable-recursive-minibuffers t) |
322 | :init | 322 | :init |
323 | (minibuffer-depth-indicate-mode) | 323 | (minibuffer-depth-indicate-mode) |
324 | :hook | 324 | :config |
325 | (after-init-hook . selectrum-mode)) | 325 | (selectrum-mode)) |
326 | 326 | ||
327 | (use-package prescient | 327 | (use-package prescient |
328 | :hook | 328 | :config |
329 | (after-init-hook . prescient-persist-mode)) | 329 | (prescient-persist-mode)) |
330 | 330 | ||
331 | (use-package selectrum-prescient | 331 | (use-package selectrum-prescient |
332 | :hook | 332 | :config |
333 | (after-init-hook . (selectrum-prescient-mode))) | 333 | (selectrum-prescient-mode)) |
334 | 334 | ||
335 | ;;;;; Searching | 335 | ;;;;; Searching |
336 | (use-package ctrlf | 336 | (use-package ctrlf |
337 | :custom | 337 | :custom |
338 | (ctrlf-show-match-count-at-eol nil) | 338 | (ctrlf-show-match-count-at-eol nil) |
339 | :hook | 339 | :config |
340 | (after-init-hook . ctrlf-mode)) | 340 | (ctrlf-mode)) |
341 | 341 | ||
342 | ;;;;; Visually switch windows | 342 | ;;;;; Visually switch windows |
343 | (use-package ctrlxo | 343 | (use-package ctrlxo |
@@ -361,8 +361,8 @@ | |||
361 | "/git-rebase-todo\\'")) | 361 | "/git-rebase-todo\\'")) |
362 | (undo-fu-session-directory | 362 | (undo-fu-session-directory |
363 | (no-littering-expand-var-file-name "undos/")) | 363 | (no-littering-expand-var-file-name "undos/")) |
364 | :hook | 364 | :config |
365 | (after-init-hook . global-undo-fu-session-mode)) | 365 | (global-undo-fu-session-mode)) |
366 | 366 | ||
367 | ;;;; Theming, looks, fonts | 367 | ;;;; Theming, looks, fonts |
368 | ;;;;; Fonts | 368 | ;;;;; Fonts |
@@ -434,13 +434,13 @@ | |||
434 | ":=" "..." ":>" ":<" ">:" "<:" | 434 | ":=" "..." ":>" ":<" ">:" "<:" |
435 | "::=" ;; add others here | 435 | "::=" ;; add others here |
436 | )) | 436 | )) |
437 | :hook | 437 | :config |
438 | (after-init-hook . global-ligature-mode)) | 438 | (global-ligature-mode)) |
439 | 439 | ||
440 | ;;;;; Unicode | 440 | ;;;;; Unicode |
441 | (use-package unicode-fonts | 441 | (use-package unicode-fonts |
442 | :hook | 442 | :config |
443 | (after-init-hook . unicode-fonts-setup)) | 443 | (unicode-fonts-setup)) |
444 | 444 | ||
445 | ;;;;; Modus themes | 445 | ;;;;; Modus themes |
446 | (use-package modus-operandi-theme | 446 | (use-package modus-operandi-theme |
@@ -469,8 +469,8 @@ | |||
469 | 469 | ||
470 | ;;;;; Convert ^L to a line | 470 | ;;;;; Convert ^L to a line |
471 | (use-package page-break-lines | 471 | (use-package page-break-lines |
472 | :hook | 472 | :config |
473 | (after-init-hook . global-page-break-lines-mode)) | 473 | (global-page-break-lines-mode)) |
474 | 474 | ||
475 | ;;;; General text editing | 475 | ;;;; General text editing |
476 | ;;;;; Jump to characters fast | 476 | ;;;;; Jump to characters fast |
@@ -480,8 +480,8 @@ | |||
480 | 480 | ||
481 | ;;;;; Show text commands acted on | 481 | ;;;;; Show text commands acted on |
482 | (use-package volatile-highlights | 482 | (use-package volatile-highlights |
483 | :hook | 483 | :config |
484 | (after-init-hook . volatile-highlights-mode)) | 484 | (volatile-highlights-mode)) |
485 | 485 | ||
486 | ;;;;; Visual replacement for `zap-to-char' | 486 | ;;;;; Visual replacement for `zap-to-char' |
487 | (use-package zop-to-char | 487 | (use-package zop-to-char |
@@ -497,8 +497,8 @@ | |||
497 | 497 | ||
498 | ;;;;; Operate on the current line if no region is active | 498 | ;;;;; Operate on the current line if no region is active |
499 | (use-package whole-line-or-region | 499 | (use-package whole-line-or-region |
500 | :hook | 500 | :config |
501 | (after-init-hook . whole-line-or-region-global-mode)) | 501 | (whole-line-or-region-global-mode)) |
502 | 502 | ||
503 | ;;;;; Expand region | 503 | ;;;;; Expand region |
504 | (use-package expand-region | 504 | (use-package expand-region |
@@ -594,8 +594,8 @@ | |||
594 | (when *acdw/at-home* | 594 | (when *acdw/at-home* |
595 | ;;;;;; Edit files with `sudo' (I think?) | 595 | ;;;;;; Edit files with `sudo' (I think?) |
596 | (use-package su | 596 | (use-package su |
597 | :hook | 597 | :config |
598 | (after-init-hook . su-mode)) | 598 | (su-mode)) |
599 | 599 | ||
600 | ;;;;;; Implement XDG Trash specification | 600 | ;;;;;; Implement XDG Trash specification |
601 | (use-package trashed | 601 | (use-package trashed |
@@ -707,5 +707,5 @@ | |||
707 | (web-mode-hook . emmet-mode) | 707 | (web-mode-hook . emmet-mode) |
708 | (web-mode-before-auto-complete-hooks . acdw/setup-emmet-in-web-mode)) | 708 | (web-mode-before-auto-complete-hooks . acdw/setup-emmet-in-web-mode)) |
709 | 709 | ||
710 | (provide 'init) | 710 | (provide 'init) |
711 | ;;; init.el ends here | 711 | ;;; init.el ends here |