-
Notifications
You must be signed in to change notification settings - Fork 67
/
init.el
75 lines (60 loc) · 2.15 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
;;; init.el --- My Emacs configuration -*- lexical-binding: t; -*-
;; Copyright (C) 2024 Mathieu Marques
;; Author: Mathieu Marques <[email protected]>
;; Created: October 16, 2014
;; Homepage: https://github.com/angrybacon/dotemacs
;; This program is free software. You can redistribute it and/or modify it under
;; the terms of the Do What The Fuck You Want To Public License, version 2 as
;; published by Sam Hocevar.
;;
;; This program is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
;; FOR A PARTICULAR PURPOSE.
;;
;; You should have received a copy of the Do What The Fuck You Want To Public
;; License along with this program. If not, see http://www.wtfpl.net/.
;;; Commentary:
;; Following lines load an Org file and build the configuration code out of it.
;;; Code:
(let ((file-name-handler-alist nil)
(gc-cons-percentage .6)
(gc-cons-threshold most-positive-fixnum)
(mode-line-format nil)
(read-process-output-max (* 1024 1024)))
;; Reduce fanfare
;; TODO See https://yrh.dev/blog/rant-obfuscation-in-emacs/
(setq inhibit-startup-echo-area-message "angrybacon")
;; Set up packages
(add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory))
(load "use-doctor")
(load "use-packages")
;; Load these first to avoid flickering
(load "use-core")
(load "use-defaults")
(load "use-interface")
(load "use-os")
;; Load partials
(load "use-applications")
(load "use-completion")
(load "use-dired")
(load "use-display")
(load "use-evil")
(load "use-git")
(load "use-help")
(load "use-languages")
(load "use-lint")
(load "use-lsp")
(load "use-mouse")
(load "use-parentheses")
(load "use-presentation")
(load "use-project")
(load "use-qol")
(load "use-templates")
(load "use-workspaces")
;; Set the working directory to home regardless of where Emacs was started from
(cd "~/")
;; Collect garbage when all else is done
(garbage-collect)
;; Log the start-up time
(add-hook 'emacs-startup-hook #'(lambda () (message "%s" (emacs-init-time)))))
;;; init.el ends here