diff --git a/core/siren-core-init.el b/core/siren-core-init.el index b465f6d..c2d8fc1 100644 --- a/core/siren-core-init.el +++ b/core/siren-core-init.el @@ -26,7 +26,7 @@ (add-to-list 'load-path siren-core-dir) ;; Configure siren-cache-dir -(setq siren-cache-dir (expand-file-name "cache" siren-dir)) +(setq siren-cache-dir (expand-file-name "cache" user-emacs-directory)) (unless (file-exists-p siren-cache-dir) (make-directory siren-cache-dir)) diff --git a/early-init.el b/early-init.el index e16720d..a183e49 100644 --- a/early-init.el +++ b/early-init.el @@ -6,6 +6,14 @@ ;;; Code: +;; Native-Comp +(setq comp-speed 2 + comp-deferred-compilation t) + +(when (boundp 'comp-eln-load-path) + (add-to-list 'comp-eln-load-path + (expand-file-name "cache/eln-cache/" user-emacs-directory))) + ;; Defer garbage collection further back in the startup process (setq gc-cons-threshold most-positive-fixnum) diff --git a/modules/workspaces/siren-desktop.el b/modules/workspaces/siren-desktop.el index c3e4b81..107f8db 100644 --- a/modules/workspaces/siren-desktop.el +++ b/modules/workspaces/siren-desktop.el @@ -23,6 +23,7 @@ (desktop-restore-frames t) :config + (add-to-list 'desktop-clear-preserve-buffers "\\*Async-native-compile-log\\*") (push '(font . :never) frameset-filter-alist) (push '(fontsize . :never) frameset-filter-alist) (push '(fullscreen . :never) frameset-filter-alist)