 (require 'package)
 (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
-;; Add managed packages to the load-path
-(let ((default-directory "~/.emacs.d/elpa/"))
-  (normal-top-level-add-subdirs-to-load-path))
+(package-initialize)
+(require 'use-package)
+
 ;; Set backup and auto-save file location
 (setq backup-directory-alist
       `((".*" . ,temporary-file-directory)))


;;;; WEB-MODE SETTINGS

(require 'web-mode)

(add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))


;;;; PKGBUILD-MODE SETTINGS

(use-package pkgbuild-mode
  :ensure t)

(add-to-list 'auto-mode-alist '("/PKGBUILD$" . pkgbuild-mode))

;;;; SCAD-MODE SETTINGS

(use-package scad
  :ensure scad-mode)
(use-package scad-preview
  :ensure t)

;;(add-to-list 'auto-mode-alist '("\\.scad\\'" . scad-mode))

