diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-18 00:49:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 00:49:35 -0400 |
commit | c5b82c12aa13d7125552f29c8f9fd2c5c5114d94 (patch) | |
tree | 3d39fabb05f3703d659aa623411eb29d2264edb1 /init.el | |
parent | Add all the icons (diff) | |
parent | Add `async` package and enable `async-bytecomp-package-mode` (diff) | |
download | mmosmacs-c5b82c12aa13d7125552f29c8f9fd2c5c5114d94.tar.gz mmosmacs-c5b82c12aa13d7125552f29c8f9fd2c5c5114d94.tar.bz2 mmosmacs-c5b82c12aa13d7125552f29c8f9fd2c5c5114d94.zip |
PR #25: Merge `performance-improvements` branch to `stable` branch
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -59,6 +59,38 @@ | |||
59 | 59 | ||
60 | 60 | ||
61 | ;; --------------------------------------------------------------------- | 61 | ;; --------------------------------------------------------------------- |
62 | ;; Performance hacks | ||
63 | ;; ----------------- | ||
64 | ;; These hacks subjectively make Emacs perform "better" | ||
65 | ;; --------------------------------------------------------------------- | ||
66 | |||
67 | ;; Garbage Collector Magic Hack | ||
68 | (use-package gcmh | ||
69 | :straight t | ||
70 | :defer t | ||
71 | :init | ||
72 | (setq gcmh-idle-delay 15 | ||
73 | gcmh-idle-delay-factor 10 | ||
74 | gcmh-high-cons-threshold (* 16 (* 1024 1024))) ;16mb | ||
75 | :hook (after-init-hook . gcmh-mode)) | ||
76 | |||
77 | |||
78 | ;; --------------------------------- | ||
79 | ;; Async | ||
80 | ;; ----- | ||
81 | ;; Asynchronous processing of things | ||
82 | ;; --------------------------------- | ||
83 | |||
84 | ;; Async package | ||
85 | (use-package async | ||
86 | :straight t | ||
87 | :config | ||
88 | (setq async-bytecomp-package-mode t)) | ||
89 | |||
90 | |||
91 | |||
92 | |||
93 | ;; --------------------------------------------------------------------- | ||
62 | ;;; Graphical Environment | 94 | ;;; Graphical Environment |
63 | ;; ---------------------- | 95 | ;; ---------------------- |
64 | ;; MMOSMacs is intended to be my entire Desktop Environment. | 96 | ;; MMOSMacs is intended to be my entire Desktop Environment. |