.emacs.d/init.el

53 lines
1.3 KiB
EmacsLisp

;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-11-14T11:49:41+00:00>
;;; Commentary:
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
;; above though.
;;; Code:
;; Add path to init files.
(push "~/.emacs.d/init" load-path)
(require 'basics/package-management)
;; ;; Benchmark for startup-file.
;; (use-package benchmark-init
;; :config
;; ;; To disable collection of benchmark data after init is done.
;; (add-hook 'after-init-hook 'benchmark-init/deactivate))
(require 'basics/global-variables)
;; Set garbage collection threshold to 100 MiB (or 20 MiB) to speed up init.
;; It is reset at the end of the file.
(if slow-computer
(setq gc-cons-threshold (* 20 1024 1024))
(setq gc-cons-threshold (* 100 1024 1024)))
(require 'basics/input)
(require 'basics/buffers)
(require 'basics/appearance)
(require 'basics/ui)
(require 'text/common)
(require 'text/latex)
(require 'text/tools)
(require 'text/web)
(require 'text/misc)
(require 'programming/common)
(require 'programming/c++)
(require 'programming/misc)
(require 'net/server)
(require 'net/client)
;; Set garbage collection threshold to original value.
(setq gc-cons-threshold (car (get 'gc-cons-threshold 'standard-value)))
(provide 'init)
;;; init.el ends here