-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
29 lines (23 loc) · 821 Bytes
/
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
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(setq use-package-always-ensure t)
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file 'noerror)
(defvar emacs-root (file-name-directory load-file-name)
"The root directory of emacs")
(defvar custom-dir (expand-file-name "custom" emacs-root)
"The directory with my custom tweaks")
(add-to-list 'load-path custom-dir)
(require 'core)
(require 'languages)
(require 'ui)