feat(core): add support for native-comp/gccemacs

This commit is contained in:
2020-08-19 00:44:57 +01:00
parent 4fbf607950
commit 658daa99d6
3 changed files with 10 additions and 1 deletions

View File

@@ -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))

View File

@@ -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)

View File

@@ -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)