1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-30 14:32:08 -05:00
dotfiles/lain/.emacs.d/init.el

24 lines
867 B
EmacsLisp
Executable File

;; Needs to be commented or else it will be added back
; (package-initialize)
(defvar jf-config-org-file (expand-file-name "config.org" user-emacs-directory))
(defvar jf-config-file (expand-file-name "config.el" user-emacs-directory))
(defvar jf-init-file (expand-file-name "init.el" user-emacs-directory))
(defvar jf-load-path (expand-file-name "lisp/" user-emacs-directory))
(defvar jf-gc-threshold 20000000) ; 20MB up from 800KB
(defun jf-inhibit-gc ()
(setq gc-cons-threshold most-positive-fixnum))
(defun jf-resume-gc ()
(setq gc-cons-threshold jf-gc-threshold))
(message "-> Initializing Electronic Macs...")
;; Don't garbage collect during init
(jf-inhibit-gc)
(org-babel-load-file jf-config-org-file)
(jf-resume-gc)
(message "-> Initialized in %s with %d GCs."
(float-time (time-subtract after-init-time before-init-time))
gcs-done)