summary refs log tree commit diff
path: root/emacs.d/init.el
blob: 715222b64f2fb1930530ff9e34a72e6040a55639 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;; If this is not commented, Emacs will overwrite this configuration file
;; on load time.
;; (package-initialize)

(defun emacs-lib (filename)
  (expand-file-name (concat "lib" "/" filename ".el") user-emacs-directory))

(load (emacs-lib "settings"))
(load (emacs-lib "funcs"))
(load (emacs-lib "bindings"))

(when (>= emacs-major-version 24)
  (load (emacs-lib "packages"))
  (load (emacs-lib "twitter") 'missing-ok))

(add-hook 'emacs-startup-hook #'fc/load-time)