-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
69 lines (57 loc) · 2.34 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
;;; .emacs --- My custom emacs file
;;; Commentary:
;;; S/O internet
;;; Code:
;; Update GC thresholds during startup
(defvar normal-gc-cons-threshold (* 20 1024 1024))
(defvar init-gc-cons-threshold (* 128 1024 1024))
(setq gc-cons-threshold init-gc-cons-threshold)
(add-hook 'emacs-startup-hook (lambda ()
(setq gc-cons-threshold normal-gc-cons-threshold)))
(setq read-process-output-max (* 1024 1024)) ;; 1mb
(defun reload-init-file ()
(interactive)
(load-file user-init-file))
(defconst user-init-dir
(cond ((boundp 'user-emacs-directory) user-emacs-directory)
((boundp 'user-init-directory) user-init-directory)
(t "~/.emacs.d/")))
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(defun load-user-file (file)
(interactive "f")
"Load a file in current user's configuration directory"
(load-file (expand-file-name file user-init-dir)))
(load-user-file "./conf/utils.el")
(load-user-file "./conf/init-osx-keys.el")
(load-user-file "./conf/init-misc-defaults.el")
(load-user-file "./conf/init-frames.el")
(load-user-file "./conf/init-themes.el")
(load-user-file "./conf/init-packages.el")
(load-user-file "./conf/init-copy-paste-term.el")
(load-user-file "./conf/init-misc-packages.el")
(load-user-file "./conf/init-misc-editing.el")
(load-user-file "./conf/init-buffers.el")
(load-user-file "./conf/init-languages.el")
(load-user-file "./conf/init-lsp.el")
(load-user-file "./conf/init-org-mode.el")
(load-user-file "./conf/init-font.el")
(provide 'init)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(apheleia async clipetty dracula-theme elpy find-file-in-project
go-mode iedit jtsx lsp-mode lsp-ui lv magit marginalia
markdown-mode multiple-cursors org-appear org-superstar
projectile rust-mode shfmt terraform-mode treesit-auto
try vertico yaml-mode yasnippet-snippets)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)