-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathinit.el
58 lines (54 loc) · 2.52 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
;; [[file:readme.org::#h:E6162DC2-7E1C-4843-8448-FF104A444B40][init.el: startup optimization:1]]
;;; init.el --- Personal configuration file -*- lexical-binding: t; no-byte-compile: t; -*-
;; NOTE: init.el is now generated from readme.org. Please edit that file instead
;; `file-name-handler-alist' is consulted on every `require', `load' and various
;; path/io functions. You get a minor speed up by nooping this. However, this
;; may cause problems on builds of Emacs where its site lisp files aren't
;; byte-compiled and we're forced to load the *.el.gz files (e.g. on Alpine)
(unless (daemonp)
(defvar doom--initial-file-name-handler-alist file-name-handler-alist)
(setq file-name-handler-alist nil)
;; Restore `file-name-handler-alist' later, because it is needed for handling
;; encrypted or compressed files, among other things.
(defun doom-reset-file-handler-alist-h ()
;; Re-add rather than `setq', because changes to `file-name-handler-alist'
;; since startup ought to be preserved.
(dolist (handler file-name-handler-alist)
(add-to-list 'doom--initial-file-name-handler-alist handler))
(setq file-name-handler-alist doom--initial-file-name-handler-alist))
(add-hook 'emacs-startup-hook #'doom-reset-file-handler-alist-h)
(add-hook 'after-init-hook '(lambda ()
;; restore after startup
(setq gc-cons-threshold 16777216
gc-cons-percentage 0.1)))
)
;; Ensure Doom is running out of this file's directory
(setq user-emacs-directory (file-truename (file-name-directory load-file-name)))
;; init.el: startup optimization:1 ends here
;; [[file:readme.org::#h:7B22A4F3-49A1-4848-A185-B4EEA060EECE][init.el: load modules:1]]
;; (add-to-list 'load-path "~/.emacs.d/lisp/")
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
(let ((file-name-handler-alist nil)
(gc-cons-threshold 100000000))
(require 'init-core)
(require 'init-ui-extra)
(require 'init-org-roam)
(require 'init-org-export)
(require 'init-prog-vterm)
(require 'init-prog-nix)
(require 'init-prog-lsp)
(require 'init-prog-python)
(require 'init-prog-jupyter)
(require 'init-prog-elisp)
(require 'init-prog-markdown)
(require 'init-prog-stan)
;; (require 'init-prog-r)
(require 'init-prog-clojure)
(require 'init-prog-tree-sitter)
(require 'init-extra-focus)
(require 'init-extra-web)
;; (require 'init-extra-rss)
;; (require 'init-extra)
)
;;; init.el ends here
;; init.el: load modules:1 ends here