-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
54 lines (42 loc) · 2.45 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
;; Make emacs startup faster
(setq gc-cons-threshold 402653184
gc-cons-percentage 0.6)
(defvar startup/file-name-handler-alist file-name-handler-alist)
(setq file-name-handler-alist nil)
(defun startup/revert-file-name-handler-alist ()
(setq file-name-handler-alist startup/file-name-handler-alist))
(defun startup/reset-gc ()
(setq gc-cons-threshold 16777216
gc-cons-percentage 0.1))
(add-hook 'emacs-startup-hook 'startup/revert-file-name-handler-alist)
(add-hook 'emacs-startup-hook 'startup/reset-gc)
;; Initialize melpa repo
(require 'package)
(setq package-enable-at-startup nil)
(setq package-check-signature nil)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
;; Initialize use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; Global package-ensure behavior
(require 'use-package-ensure)
(setq use-package-always-ensure t)
(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.
'(default ((t (:inherit nil :extend nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 100 :width normal :foundry "SRC" :family "Hack Nerd Font Mono")))))
(add-to-list 'initial-frame-alist '(fullscreen . maximized))
(load-theme 'monokai t)
;; Load config.org for init.el configuration
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))
(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
'(highlight-indent-guides ghub yaml-mode which-key web-mode use-package undo-tree treepy treemacs-magit treemacs-icons-dired treemacs-evil toc-org terraform-mode systemd switch-window swiper sqlite3 spaceline slime ranger pyvenv projectile powershell page-break-lines nginx-mode multi-vterm lsp-ui lsp-treemacs lsp-pyright json-mode jenkinsfile-mode ido-vertical-mode htmlize helpful go-mode geiser-mit flycheck evil-org dockerfile-mode diminish dashboard csharp-mode company-reftex company-prescient company-box company-auctex cmake-mode ccls beacon auto-package-update async)))