forked from ianyepan/yay-evil-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
38 lines (31 loc) · 1.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
;;; init.el --- Emacs init file
;; Author: Ian Y.E. Pan
;;; tary:
;;; A lightweight Emacs config containing only the essentials: shipped with a custom theme!
;;; Code:
(setq gc-cons-threshold 402653184
gc-cons-percentage 0.6)
(defvar ian--file-name-handler-alist file-name-handler-alist)
(setq file-name-handler-alist nil)
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
(setq package-selected-packages '(dashboard yasnippet yasnippet-snippets which-key company evil magit org-bullets ido-vertical-mode highlight-operators highlight-numbers highlight-escape-sequences flycheck))
(package-initialize)
(setq package-enable-at-startup nil)
(unless package-archive-contents
(package-refresh-contents))
(package-install-selected-packages)
;; Load theme
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(load-theme 'wilmersdorf t)
;; Load main config file "./config.org"
(require 'org)
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))
;; Dump custom-set-variables to a garbage file and don't load it
(setq custom-file "~/.emacs.d/package-selected-packages.el")
(setq gc-cons-threshold 16777216
gc-cons-percentage 0.1)
(setq file-name-handler-alist ian--file-name-handler-alist)
(provide 'init)
;;; init.el ends here