-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.el
61 lines (48 loc) · 2.02 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
;; init.el -- tycho's emacs configuration
;;; Commentary:
;; This is a simple, but complete configuration, with a focus on
;; usability and fast start up times.
;;; Code:
;; init-without-gc
(let ((file-name-handler-alist nil)
(gc-cons-threshold 80000000000000))
;; reset gc after init is complete
(add-to-list 'after-init-hook
(lambda ()
(setq max-specpdl-size 13000)
(setq gc-cons-threshold 800000)
(let ((garbage-collection-messages t)) (garbage-collect))
(let ((msg (format "started (%d) in %s" (emacs-pid) (emacs-init-time))))
(message (concat "emacs: " msg))
(daemonp) (alert msg :title (format "emacs-%s" tychoish-emacs-identifier))))
(when (string-match "NATIVE_COMP" system-configuration-features)
(setq native-comp-deferred-compilation t)
(setq native-compile-prune-cache t)))
;; start: init-without-gc
(require 'package)
(setq package-user-dir (concat user-emacs-directory "elpa"))
(setq package-enable-at-startup nil)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(defvar local-notes-directory (expand-file-name "~/notes")
"Defines where notes (e.g. org, roam, deft, etc.) stores are located.")
(defvar user-org-directories nil
"Defines additional directories where org files might exist.")
(add-to-list 'load-path (concat user-emacs-directory "lisp"))
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e/")
;; all use-package declarations and configuration
(use-package tychoish-core
:config
(tychoish-setup-global-modes)
(tychoish-setup-modeline)
(tychoish-setup-user-local-config))
;; end: init-without-gc
)
(provide 'init)
;;; init.el ends here
(put 'magit-diff-edit-hunk-commit 'disabled nil)