Add native compilation (Emacs 29) and font size.

This commit is contained in:
kj 2022-04-06 11:05:36 -04:00
parent c8e1b07e28
commit 1ef3e29fd7

View File

@ -13,6 +13,16 @@
;; The default is 800 kilobytes. Measured in bytes.
(setq gc-cons-threshold (* 50 1000 1000))
;; Native compilation
(when (and (fboundp 'native-comp-available-p)
(native-comp-available-p))
(progn
(setq native-comp-async-report-warnings-errors nil)
(setq comp-deferred-compilation t)
(add-to-list 'native-comp-eln-load-path (expand-file-name "private/cache/eln-cache/" user-emacs-directory))
(setq package-native-compile t)
))
;; Initialize package sources
(require 'package)
@ -34,7 +44,7 @@
(use-package dracula-theme
:config
(load-theme 'dracula t)
(set-face-attribute 'default nil :font "Fira Code Retina") ; Font
(set-face-attribute 'default nil :font "Fira Code Retina" :height 112) ; Font
)
;; Instalar use-package en caso de no tenerlo