-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
36 lines (26 loc) · 925 Bytes
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; -*- lexical-binding: t -*-
;; Copyright (C) 2018-2022 Robin Mattheussen
;; Author: Robin Mattheussen <[email protected]>
;; URL: https://github.com/romatthe/romacs
;;; Commentary:
;; Robin Mattheussen's Emacs configuration
;;; Code:
;; Reset GC threshold after init to something reasonable.
(setq gc-cons-threshold most-positive-fixnum)
(add-hook 'after-init-hook
(lambda ()
(setq gc-cons-threshold 16777216)))
;; Prepare paths containing the configuration
(add-to-list 'load-path (expand-file-name "core/" user-emacs-directory))
(add-to-list 'load-path (expand-file-name "modules/" user-emacs-directory))
;; Bootstrap straight.el
(require 'romacs-bootstrap)
;; Sane defaults across all modes
(require 'romacs-defaults)
;; Custom functions.
(require 'romacs-defuns)
;; Additional modules
(require 'romacs-appearance)
(require 'romacs-editing)
(require 'romacs-company)
(require 'romacs-dev)