summaryrefslogtreecommitdiff
path: root/emacs/.emacs
blob: a20e51b7fbf8c8c0335814722696974df4533e53 (plain)
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
(defconst user-init-dir
  (cond ((boundp 'user-emacs-directory) user-emacs-directory)
	((boundp 'user-init-directory) user-init-directory)
	(t "~/.emacs.d")))

(defun load-user-file (file)
  "Load a file in current user's configuration directory"
  (load (expand-file-name file user-init-dir) t nil t))

; These lines must come first, before `(package-initialize)`
(require 'package)
(add-to-list 'package-archives (cons "melpa" "https://melpa.org/packages/") t)

(package-initialize)

(load-user-file "org-mode.el")
(load-user-file "treemacs.el")
(load-user-file "colors.el")

(custom-set-variables
 '(package-selected-packages
   (quote
    (treemacs
     ample-theme
     color-theme-sanityinc-tomorrow
     material-theme
     subatomic-theme
     subatomic256-theme
     ))))

(custom-set-faces
 '(default ((t (:family "Inconsolata" :foundry "PfEd" :slant normal :weight normal :height 140 :width normal)))))