summary refs log tree commit diff
path: root/emacs.d/init.el
blob: 664720f8bef670e28dfbdccb70382634c7bf5b8b (plain) (blame)
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
;; Initialise the package system first of all.
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)

(defvar fcuny-path-emacs-var (expand-file-name "var" user-emacs-directory)
  "Path to some files for Emacs.")

(defvar fcuny-path-emacs-elpa (expand-file-name "elpa" fcuny-path-emacs-var)
  "Path to elpa's local files.")

;; where to store the packages
(setq package-user-dir fcuny-path-emacs-elpa)

;; initialize it
(package-initialize)

(defun fcuny/init-load-path ()
  "Load custom configurations."
  (let* ((before load-path)
         (config-dir (expand-file-name "config" user-emacs-directory)))
    (dolist (path (append (list config-dir)))
      (add-to-list 'load-path path)
      (add-to-list 'Info-default-directory-list path))))

(fcuny/init-load-path)

(require 'use-package)

(use-package fcuny-vars)
(use-package fcuny-basic-settings)
(use-package fcuny-common)
(use-package fcuny-appearance)
(use-package fcuny-darwin)

(use-package fcuny-editor)
(use-package fcuny-paren)
(use-package fcuny-ibuffer)
(use-package fcuny-dired)
(use-package fcuny-project)

(use-package fcuny-company)
(use-package fcuny-magit)
(use-package fcuny-pants)
(use-package fcuny-flyspell)

(use-package fcuny-elisp)
(use-package fcuny-go)
(use-package fcuny-python)
(use-package fcuny-shell)
(use-package fcuny-scala)
(use-package fcuny-make)
(use-package fcuny-puppet)

(use-package fcuny-docker)
(use-package fcuny-json)
(use-package fcuny-thrift)
(use-package fcuny-protobuf)
(use-package fcuny-markdown)