2019-10-14 17:38:14 +02:00
|
|
|
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
|
|
|
|
|
2020-02-18 16:38:03 +01:00
|
|
|
;; Time-stamp: <2020-02-18T16:28:06+0100>
|
2019-03-19 20:49:29 +01:00
|
|
|
|
2019-03-19 00:12:11 +01:00
|
|
|
;;; Commentary:
|
2019-10-11 13:09:17 +02:00
|
|
|
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
|
|
|
|
;; above though.
|
2019-03-19 20:49:29 +01:00
|
|
|
|
2019-03-19 00:12:11 +01:00
|
|
|
;;; Code:
|
|
|
|
|
2019-10-14 17:38:14 +02:00
|
|
|
;; Add path to init files.
|
2019-12-26 19:23:43 +01:00
|
|
|
(push "~/.emacs.d/init.d" load-path)
|
2019-03-19 00:12:11 +01:00
|
|
|
|
2019-10-14 17:38:14 +02:00
|
|
|
(require 'basics/package-management)
|
2019-03-21 12:48:26 +01:00
|
|
|
|
2019-03-22 09:03:23 +01:00
|
|
|
;; ;; Benchmark for startup-file.
|
2019-03-19 00:12:11 +01:00
|
|
|
;; (use-package benchmark-init
|
|
|
|
;; :config
|
|
|
|
;; ;; To disable collection of benchmark data after init is done.
|
|
|
|
;; (add-hook 'after-init-hook 'benchmark-init/deactivate))
|
|
|
|
|
2019-10-14 17:38:14 +02:00
|
|
|
(require 'basics/global-variables)
|
2019-03-19 00:12:11 +01:00
|
|
|
|
2019-03-22 09:03:23 +01:00
|
|
|
;; Set garbage collection threshold to 100 MiB (or 20 MiB) to speed up init.
|
|
|
|
;; It is reset at the end of the file.
|
2019-03-22 02:55:59 +01:00
|
|
|
(if slow-computer
|
|
|
|
(setq gc-cons-threshold (* 20 1024 1024))
|
|
|
|
(setq gc-cons-threshold (* 100 1024 1024)))
|
|
|
|
|
2020-01-01 03:42:25 +01:00
|
|
|
(require 'basics/misc)
|
2019-10-14 17:38:14 +02:00
|
|
|
(require 'basics/input)
|
|
|
|
(require 'basics/buffers)
|
|
|
|
(require 'basics/appearance)
|
|
|
|
(require 'basics/ui)
|
2019-10-13 12:25:40 +02:00
|
|
|
|
2019-10-14 17:38:14 +02:00
|
|
|
(require 'text/common)
|
|
|
|
(require 'text/latex)
|
|
|
|
(require 'text/tools)
|
|
|
|
(require 'text/web)
|
|
|
|
(require 'text/misc)
|
2019-03-19 00:12:11 +01:00
|
|
|
|
2020-02-18 16:38:03 +01:00
|
|
|
;; Delay loading of programming modes.
|
|
|
|
(run-with-idle-timer 2 nil
|
|
|
|
(lambda ()
|
|
|
|
(require 'programming/common)
|
|
|
|
(require 'programming/c++)
|
|
|
|
(require 'programming/git)
|
|
|
|
(require 'programming/lsp)
|
|
|
|
(require 'programming/misc)
|
|
|
|
))
|
2019-05-05 15:56:38 +02:00
|
|
|
|
2019-11-04 20:42:06 +01:00
|
|
|
(require 'net/server)
|
2019-11-04 21:10:34 +01:00
|
|
|
(require 'net/client)
|
2019-03-19 00:12:11 +01:00
|
|
|
|
2019-03-22 09:03:23 +01:00
|
|
|
;; Set garbage collection threshold to original value.
|
2019-03-22 04:08:47 +01:00
|
|
|
(setq gc-cons-threshold (car (get 'gc-cons-threshold 'standard-value)))
|
|
|
|
|
2019-03-19 00:55:01 +01:00
|
|
|
(provide 'init)
|
2019-03-22 09:53:31 +01:00
|
|
|
;;; init.el ends here
|