28 lines
917 B
EmacsLisp
28 lines
917 B
EmacsLisp
;;; init.el --- Init -*- lexical-binding: t; -*-
|
|
|
|
|
|
;;; Commentary:
|
|
;;; Load init files
|
|
|
|
|
|
;;; Code:
|
|
|
|
;;; Increase garbage collection threshold during init but leave it to the default value after
|
|
;;; There are a LOT of articles/sites/... discussing this:
|
|
;;; https://bling.github.io/blog/2016/01/18/why-are-you-changing-gc-cons-threshold/
|
|
;;; https://jonnay.github.io/emagicians-starter-kit/Emagician-Base.html
|
|
;;; ...
|
|
(let ((gc-cons-threshold most-positive-fixnum))
|
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
|
;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch.
|
|
(defvar my-config-file (expand-file-name "config.org" user-emacs-directory))
|
|
|
|
(when (file-readable-p my-config-file)
|
|
(org-babel-load-file (expand-file-name my-config-file)))
|
|
|
|
(load custom-file :no-error-if-file-is-missing)
|
|
)
|
|
|
|
(provide 'init)
|
|
|
|
;;; init.el ends here
|