Update Rust config and startup GC config
This commit is contained in:
parent
d563db5f50
commit
38894e073a
3 changed files with 6 additions and 10 deletions
|
|
@ -10,8 +10,9 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
;; Set GC at 300 MB for startup
|
;; Set GC at 500 MB for startup
|
||||||
(setq gc-cons-threshold 300000000)
|
(setq gc-cons-threshold 500000000)
|
||||||
|
(setq gc-cons-percentage 0.6)
|
||||||
|
|
||||||
;;; Use straight.el for package management
|
;;; Use straight.el for package management
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
|
|
@ -88,6 +89,7 @@
|
||||||
|
|
||||||
;; Restore GC to normal, but still high
|
;; Restore GC to normal, but still high
|
||||||
(setq gc-cons-threshold 100000000)
|
(setq gc-cons-threshold 100000000)
|
||||||
|
(setq gc-cons-percentage 0.1)
|
||||||
|
|
||||||
(provide '+custom-init)
|
(provide '+custom-init)
|
||||||
;;; custom-init.el ends here
|
;;; custom-init.el ends here
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,6 @@
|
||||||
:defer t
|
:defer t
|
||||||
:requires (rust-mode))
|
:requires (rust-mode))
|
||||||
|
|
||||||
(use-package racer
|
|
||||||
:straight t
|
|
||||||
:defer t
|
|
||||||
:requires (rust-mode))
|
|
||||||
|
|
||||||
(defun activate-rust-mode ()
|
(defun activate-rust-mode ()
|
||||||
"All things for Rust mode."
|
"All things for Rust mode."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
@ -34,7 +29,6 @@
|
||||||
|
|
||||||
(add-hook 'rust-mode-hook 'activate-rust-mode)
|
(add-hook 'rust-mode-hook 'activate-rust-mode)
|
||||||
(add-hook 'rust-mode-hook 'flycheck-rust-setup)
|
(add-hook 'rust-mode-hook 'flycheck-rust-setup)
|
||||||
(add-hook 'rust-mode-hook 'racer-mode)
|
|
||||||
|
|
||||||
(provide '+custom-lang-rust)
|
(provide '+custom-lang-rust)
|
||||||
;;; rust.el ends here
|
;;; rust.el ends here
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@
|
||||||
|
|
||||||
(spaceline-emacs-theme)
|
(spaceline-emacs-theme)
|
||||||
|
|
||||||
;; Zenburn with customizations
|
;; Harmonic light with customizations
|
||||||
(enable-theme 'base16-zenburn-modified)
|
(enable-theme 'base16-harmonic-light-modified)
|
||||||
|
|
||||||
(provide '+custom-pkg-themes)
|
(provide '+custom-pkg-themes)
|
||||||
;;; themes.el ends here
|
;;; themes.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue